Re: [PATCH] x86: Fix *vec_dupv4hi constraints [PR94942]

2020-05-05 Thread Uros Bizjak via Gcc-patches
On Tue, May 5, 2020 at 9:11 AM Jakub Jelinek wrote: > > Hi! > > This insn and split splits into HI->V?HImode broadcast for avx2 and later, > but either the operands need to be %xmm0-%xmm15 (i.e. VEX encoded insn), or > the insn needs both AVX512BW and AVX512VL. > Now, Yv constraint is v for AVX512

[PATCH] x86: Fix *vec_dupv4hi constraints [PR94942]

2020-05-05 Thread Jakub Jelinek via Gcc-patches
Hi! This insn and split splits into HI->V?HImode broadcast for avx2 and later, but either the operands need to be %xmm0-%xmm15 (i.e. VEX encoded insn), or the insn needs both AVX512BW and AVX512VL. Now, Yv constraint is v for AVX512VL and x otherwise, so for -mavx512vl -mno-avx512bw we ICE if we