From 13082c80c1d78e01911d01e5163061b83e6c553f Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 28 Feb 2003 08:08:23 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/compile/simd-3.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bcdaf536209..a4e96d5ab5b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-02-28 Alexandre Oliva + + * gcc.c-torture/compile/simd-3.c: Do nothing if double is not + wider than float. + 2003-02-26 Zdenek Dvorak * 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 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 + +/* 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 -- 2.30.2