summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-3.c b/gcc/testsuite/gcc.c-torture/compile/simd-3.c
index 24d2f489e8c..f7dc54ebf8b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/simd-3.c
+++ b/gcc/testsuite/gcc.c-torture/compile/simd-3.c
@@ -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