[gcc r17-3455] x86: Compile vect-shiftv[48]qi.c with -mno-ssse3 -mtune=generic
"H.J. Lu via Gcc-cvs" <[email protected]>
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:f9056eb2213666feca4f81e6fc2af22c70a05d8b commit r17-3455-gf9056eb2213666feca4f81e6fc2af22c70a05d8b Author: H.J. Lu <[email protected]> Date: Thu Aug 20 10:29:41 2026 +0800 x86: Compile vect-shiftv[48]qi.c with -mno-ssse3 -mtune=generic Compile vect-shiftv[48]qi.c with -mno-ssse3 -mtune=generic to avoid FAIL: gcc.target/i386/vect-shiftv4qi.c scan-assembler-times psllw 2 FAIL: gcc.target/i386/vect-shiftv4qi.c scan-assembler-times psrlw 5 FAIL: gcc.target/i386/vect-shiftv8qi.c scan-assembler-times psllw 2 FAIL: gcc.target/i386/vect-shiftv8qi.c scan-assembler-times psrlw 5 due to SSSE3/SSE4 instructions and different code sequences when SSSE3 is enabled by default and a different default cost mode is in use. PR testsuite/126923 * gcc.target/i386/vect-shiftv4qi.c (dg-options): Replace "-mno-avx2 -mno-avx512vl" with "-mno-ssse3 -mtune=generic". * gcc.target/i386/vect-shiftv8qi.c (dg-options): Likewise. Signed-off-by: H.J. Lu <[email protected]> Diff: --- gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c | 2 +- gcc/testsuite/gcc.target/i386/vect-shiftv8qi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c b/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c index a5b8ffebc242..8af5df777b36 100644 --- a/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c +++ b/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse2 -mno-avx2 -mno-avx512vl" } */ +/* { dg-options "-O2 -msse2 -mno-ssse3 -mtune=generic" } */ /* { dg-additional-options "-fno-PIE" { target ia32 } } */ #define N 4 diff --git a/gcc/testsuite/gcc.target/i386/vect-shiftv8qi.c b/gcc/testsuite/gcc.target/i386/vect-shiftv8qi.c index 3dfcfd28a733..fefbf1e2a035 100644 --- a/gcc/testsuite/gcc.target/i386/vect-shiftv8qi.c +++ b/gcc/testsuite/gcc.target/i386/vect-shiftv8qi.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { ! ia32 } } } */ -/* { dg-options "-O2 -msse2 -mno-avx2 -mno-avx512vl" } */ +/* { dg-options "-O2 -msse2 -mno-ssse3 -mtune=generic" } */ #define N 8