[gcc r17-2697] gcc.target/i386/pr[27827|50038].c: Compile with -mno-sse

"H.J. Lu via Gcc-cvs" <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:699ff0761c510d447beafa6ceb85e0aed8338f59

commit r17-2697-g699ff0761c510d447beafa6ceb85e0aed8338f59
Author: H.J. Lu <[email protected]>
Date:   Sat Jul 25 14:26:41 2026 +0800

    gcc.target/i386/pr[27827|50038].c: Compile with -mno-sse
    
    After
    
    commit fb0838bc1073aa5f22ec38e0cca2d70d625c6d71
    Author: Richard Biener <[email protected]>
    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 <[email protected]>

Diff:
---
 gcc/testsuite/gcc.target/i386/pr27827.c | 2 +-
 gcc/testsuite/gcc.target/i386/pr50038.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr27827.c b/gcc/testsuite/gcc.target/i386/pr27827.c
index 3b337444a40f..fe678437f2ce 100644
--- a/gcc/testsuite/gcc.target/i386/pr27827.c
+++ b/gcc/testsuite/gcc.target/i386/pr27827.c
@@ -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)
diff --git a/gcc/testsuite/gcc.target/i386/pr50038.c b/gcc/testsuite/gcc.target/i386/pr50038.c
index fb635dfcc9d4..10e002c8db13 100644
--- a/gcc/testsuite/gcc.target/i386/pr50038.c
+++ b/gcc/testsuite/gcc.target/i386/pr50038.c
@@ -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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.