Fix 32bit testing, where -mfpmath=387 is the default. 2019-08-27 Uroš Bizjak <ubiz...@gmail.com>
* gcc.target/i386/sse4_1-round-roundeven-1.c (dg-options): Add -mfpmath=sse. * gcc.target/i386/sse4_1-round-roundeven-2.c (dg-options): Ditto. Tested on x86_64-linux-gnu {,-m32}. Committed to mainline SVN. Uros.
Index: gcc.target/i386/sse4_1-round-roundeven-1.c =================================================================== --- gcc.target/i386/sse4_1-round-roundeven-1.c (revision 274961) +++ gcc.target/i386/sse4_1-round-roundeven-1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse4.1" } */ +/* { dg-options "-O2 -msse4.1 -mfpmath=sse" } */ __attribute__((noinline, noclone)) double f1 (double x) Index: gcc.target/i386/sse4_1-round-roundeven-2.c =================================================================== --- gcc.target/i386/sse4_1-round-roundeven-2.c (revision 274961) +++ gcc.target/i386/sse4_1-round-roundeven-2.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ -/* { dg-options "-O2 -msse4.1" } */ +/* { dg-options "-O2 -msse4.1 -mfpmath=sse" } */ #include "sse4_1-check.h" #include "sse4_1-round-roundeven-1.c"