simd-3.c: Do nothing if double is not wider than float.
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 28 Feb 2003 08:08:23 +0000 (08:08 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 28 Feb 2003 08:08:23 +0000 (08:08 +0000)
* gcc.c-torture/compile/simd-3.c: Do nothing if double is not
wider than float.

From-SVN: r63549

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/simd-3.c

index bcdaf53..a4e96d5 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gcc.c-torture/compile/simd-3.c: Do nothing if double is not
+       wider than float.
+
 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
 
        * lib/scanasm.exp: Add support for counting numbers of
index 24d2f48..f7dc54e 100644 (file)
@@ -1,3 +1,8 @@
+#include <float.h>
+
+/* If double is not wider than float, we probably don't have DFmode,
+   or at least it's not as wide as double.  */
+#if DBL_MANT_DIG > FLT_MANT_DIG
 typedef float floatvect2 __attribute__((mode(V2DF)));
 
 typedef union
@@ -15,3 +20,4 @@ void tempf(double *x, double *y)
         x[0]=temp2.f[0];
         x[1]=temp2.f[1];
 }
+#endif