aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-02-28 08:08:23 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2003-02-28 08:08:23 +0000
commit13082c80c1d78e01911d01e5163061b83e6c553f (patch)
tree5809e05af05e6ca7a76006404fbed30796899116 /gcc
parent9d18e06bd5453336dacd6aff92c186d2c69ffbe6 (diff)
downloadgcc-13082c80c1d78e01911d01e5163061b83e6c553f.zip
gcc-13082c80c1d78e01911d01e5163061b83e6c553f.tar.gz
gcc-13082c80c1d78e01911d01e5163061b83e6c553f.tar.bz2
simd-3.c: Do nothing if double is not wider than float.
* gcc.c-torture/compile/simd-3.c: Do nothing if double is not wider than float. From-SVN: r63549
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-3.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bcdaf53..a4e96d5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-3.c b/gcc/testsuite/gcc.c-torture/compile/simd-3.c
index 24d2f48..f7dc54e 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