Re: [PATCH] c-family: Tighten vector handling in type_for_mode [PR94072]

2020-03-19 Thread Joseph Myers
On Thu, 19 Mar 2020, Richard Sandiford wrote: > In this PR we had a 512-bit VECTOR_TYPE whose mode is XImode > (an integer mode used for four 128-bit vectors). When trying > to expand a zero constant for it, we hit code in expand_expr_real_1 > that tries to use the associated integer type

Re: [PATCH] c-family: Tighten vector handling in type_for_mode [PR94072]

2020-03-19 Thread Richard Sandiford
"H.J. Lu" writes: > On Thu, Mar 19, 2020 at 4:10 AM Richard Sandiford > wrote: >> >> In this PR we had a 512-bit VECTOR_TYPE whose mode is XImode >> (an integer mode used for four 128-bit vectors). When trying >> to expand a zero constant for it, we hit code in expand_expr_real_1 >> that tries

Re: [PATCH] c-family: Tighten vector handling in type_for_mode [PR94072]

2020-03-19 Thread H.J. Lu via Gcc-patches
On Thu, Mar 19, 2020 at 4:10 AM Richard Sandiford wrote: > > In this PR we had a 512-bit VECTOR_TYPE whose mode is XImode > (an integer mode used for four 128-bit vectors). When trying > to expand a zero constant for it, we hit code in expand_expr_real_1 > that tries to use the associated

[PATCH] c-family: Tighten vector handling in type_for_mode [PR94072]

2020-03-19 Thread Richard Sandiford
In this PR we had a 512-bit VECTOR_TYPE whose mode is XImode (an integer mode used for four 128-bit vectors). When trying to expand a zero constant for it, we hit code in expand_expr_real_1 that tries to use the associated integer type instead. The code used type_for_mode (XImode, 1) to get this