From: H.J. Lu Date: Sun, 2 Aug 2026 07:33:35 +0000 (+0800) Subject: sse-init-v2df-1.c: Compile with -mfpmath=sse X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b4e8371e3d0b0b87adffdcc5c81f27eb5ba46db;p=thirdparty%2Fgcc.git 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 --- 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 f686d4ed5e8..7315bd2f2e1 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)));