]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.target/i386/pr[27827|50038].c: Compile with -mno-sse
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 25 Jul 2026 06:26:41 +0000 (14:26 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 25 Jul 2026 06:44:54 +0000 (14:44 +0800)
After

commit fb0838bc1073aa5f22ec38e0cca2d70d625c6d71
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Jul 15 10:37:57 2026 +0200

    Support two-lane vector BB reductions without target support

we may vectorize gcc.target/i386/pr27827.c and gcc.target/i386/pr50038.c
with -march=native and

$ make check-gcc RUNTESTFLAGS="--target_board='unix{-m32\ -march=native,-march=native}'

get

FAIL: gcc.target/i386/pr27827.c scan-assembler fmul[ \t]*%st
FAIL: gcc.target/i386/pr50038.c scan-assembler-times movzbl 2

Since these 2 tests don't use SEE instructions originally, compile them
with -mno-sse to avoid test failures.

PR tree-optimization/126028
* gcc.target/i386/pr27827.c: Compile with -mno-sse.
* gcc.target/i386/pr50038.c: Likewise.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/testsuite/gcc.target/i386/pr27827.c
gcc/testsuite/gcc.target/i386/pr50038.c

index 3b337444a40f367ec4f9b0085990616187107a80..fe678437f2ce6c7b03841a6697a5713819622f82 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -mfpmath=387" } */
+/* { dg-options "-O2 -mno-sse -mfpmath=387" } */
 
 double a, b;
 double f(double c)
index fb635dfcc9d458d83946cb6083b1397737fb62f1..10e002c8db139072131c005de76d1e4dd500d213 100644 (file)
@@ -1,6 +1,6 @@
 /* PR target/50038 */
 /* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -mno-sse" } */
 
 void
 test (int len, unsigned char *in, unsigned char *out)