[gcc r17-2883] sse-init-v2df-1.c: Compile with -mfpmath=sse

"H.J. Lu via Gcc-cvs" <[email protected]> Sun, 2 Aug 2026 07:51:18 +0000 (GMT)
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:5b4e8371e3d0b0b87adffdcc5c81f27eb5ba46db

commit r17-2883-g5b4e8371e3d0b0b87adffdcc5c81f27eb5ba46db
Author: H.J. Lu <[email protected]>
Date:   Sun Aug 2 15:33:35 2026 +0800

    sse-init-v2df-1.c: Compile with -mfpmath=sse
    
    When GCC is configured with --with-fpmath=sse, i386/ssemath.h is used,
    which has
    
     #undef TARGET_FPMATH_DEFAULT_P
     #define TARGET_FPMATH_DEFAULT_P(x) \
      (TARGET_SSE2_P(x) ? FPMATH_SSE : FPMATH_387)
    
    SSE math is disabled with -mno-sse2.  Since sse-init-v2df-1.c requires
    SSE math, compile sse-init-v2df-1.c with -mfpmath=sse so that SSE math
    is enabled with "-mno-sse2"
    
            * gcc.target/i386/sse-init-v2df-1.c: Compile with -mfpmath=sse.
    
    Signed-off-by: H.J. Lu <[email protected]>

Diff:
---
 gcc/testsuite/gcc.target/i386/sse-init-v2df-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/sse-init-v2df-1.c b/gcc/testsuite/gcc.target/i386/sse-init-v2df-1.c
index f686d4ed5e80..7315bd2f2e1c 100644
--- a/gcc/testsuite/gcc.target/i386/sse-init-v2df-1.c
+++ b/gcc/testsuite/gcc.target/i386/sse-init-v2df-1.c
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
-/* { dg-options "-O2 -msse -mno-sse2" } */
+/* { dg-options "-O2 -msse -mno-sse2 -mfpmath=sse" } */
 
 typedef double v2df __attribute__ ((__vector_size__ (16)));