diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-28 08:08:23 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-28 08:08:23 +0000 |
commit | 74db04645f07424fb05b53fee66c74f52c2b5213 (patch) | |
tree | 5809e05af05e6ca7a76006404fbed30796899116 /gcc/testsuite/gcc.c-torture/compile/simd-3.c | |
parent | 263c416c32775559e4e6bcb0a7029a30172f01f5 (diff) | |
download | gcc-74db04645f07424fb05b53fee66c74f52c2b5213.tar.gz |
* gcc.c-torture/compile/simd-3.c: Do nothing if double is not
wider than float.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63549 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/simd-3.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/simd-3.c | 6 |
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 |