Hi,
r17-5483 broke the ia32 vpinsrw scan in vect-bfloat16-2b.c (PR128169),
a -mavx512f -mno-avx512bw test. AVX-512BW is practically a baseline
for all AVX-512 capable processors, so this series doesn't tune codegen
for that configuration. It fixes two places that emit instructions
requiring an ISA that is not enabled, and adjusts the test.
1/3: Use zmm sources and 32x4 vextract forms without AVX512VL/DQ.
2/3: Avoid xmm16-xmm31 for vpextrw/vpinsrw without AVX512BW.
3/3: Only scan vpinsrw for 64-bit targets.
Regtested on x86_64-pc-linux-gnu {-m32,}.
Ok for trunk?
Hu, Lin1 (3):
i386: Don't emit AVX512VL/AVX512DQ vextract forms without those ISAs
i386: Don't use xmm16-xmm31 for vpextrw/vpinsrw without AVX512BW
testsuite: Only scan vpinsrw for 64-bit in vect-bfloat16-2b.c
[PR128169]
gcc/config/i386/i386.md | 8 ++--
gcc/config/i386/sse.md | 18 +++++---
.../i386/avx512f-vec-extract-novl-1.c | 17 ++++++++
.../i386/avx512f-vec-extract-novl-2.c | 16 ++++++++
.../i386/avx512vl-no-avx512bw-pextrw-1.c | 41 +++++++++++++++++++
.../gcc.target/i386/vect-bfloat16-2b.c | 2 +-
6 files changed, 91 insertions(+), 11 deletions(-)
create mode 100644 gcc/testsuite/gcc.target/i386/avx512f-vec-extract-novl-1.c
create mode 100644 gcc/testsuite/gcc.target/i386/avx512f-vec-extract-novl-2.c
create mode 100644
gcc/testsuite/gcc.target/i386/avx512vl-no-avx512bw-pextrw-1.c
--
2.31.1