[Bug testsuite/39831] gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jun 6 23:27:00 GMT 2009
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2009-06-06 23:27 -------
I can confirm that at least the three tests that are run (1 to 3) PASS on
darwin with the following patch:
Index: gcc/testsuite/gcc.target/i386/excess-precision-1.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-1.c (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-1.c (working copy)
@@ -2,7 +2,7 @@
through various operations. */
/* { dg-do run } */
/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */
#include <float.h>
Index: gcc/testsuite/gcc.target/i386/excess-precision-3.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-3.c (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-3.c (working copy)
@@ -2,7 +2,7 @@
necessary. */
/* { dg-do run } */
/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */
#include <float.h>
#include <stdarg.h>
Index: gcc/testsuite/gcc.target/i386/excess-precision-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-2.c (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-2.c (working copy)
@@ -1,7 +1,7 @@
/* Excess precision tests. Test excess precision of constants. */
/* { dg-do run } */
/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */
#include <float.h>
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39831
More information about the Gcc-bugs
mailing list