diff mbox series

[testsuite] : Use -mfpmath=sse in gcc.target/i386/sse4_1-round-roundeven-?.c tests

Message ID CAFULd4afv5A3EXCbDSR2Qyo+yfdFkSzdH+N9i7N5A95j5gze0g@mail.gmail.com
State New
Headers show
Series [testsuite] : Use -mfpmath=sse in gcc.target/i386/sse4_1-round-roundeven-?.c tests | expand

Commit Message

Uros Bizjak Aug. 27, 2019, 5:39 p.m. UTC
Fix 32bit testing, where -mfpmath=387 is the default.

2019-08-27  Uroš Bizjak  <ubizjak@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.
diff mbox series

Patch

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"