aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-12-27 22:50:06 +0000
committerAlan Modra <amodra@gcc.gnu.org>2005-12-28 09:20:06 +1030
commit5156c0c3a78803759bd723877af0ef2baafea938 (patch)
tree42dd0260184863f2261a73a03e436879b5bb74da /gcc
parent0772236136dce27b3dd7879cdd4cf8958a45a678 (diff)
downloadgcc-5156c0c3a78803759bd723877af0ef2baafea938.zip
gcc-5156c0c3a78803759bd723877af0ef2baafea938.tar.gz
gcc-5156c0c3a78803759bd723877af0ef2baafea938.tar.bz2
fp-int-convert-timode.c: Don't test IBM Extended Double long doubles or repeat tests when...
* gcc.dg/torture/fp-int-convert-timode.c: Don't test IBM Extended Double long doubles or repeat tests when long double is the same size as double. From-SVN: r109087
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5abbdad..3cd14bf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-28 Alan Modra <amodra@bigpond.net.au>
+
+ * gcc.dg/torture/fp-int-convert-timode.c: Don't test IBM
+ Extended Double long doubles or repeat tests when long double is
+ the same size as double.
+
2005-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* g++.dg/rtti/tinfo1.C: Scan for ".global" also.
diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c
index 244fc31..2b27153 100644
--- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c
+++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c
@@ -11,6 +11,11 @@ main (void)
{
TEST_I_F(TItype, UTItype, float, FLT_MANT_DIG);
TEST_I_F(TItype, UTItype, double, DBL_MANT_DIG);
+ /* Disable the long double tests when using IBM Extended Doubles.
+ They have variable precision, but constants calculated by gcc's
+ real.c assume fixed precision. */
+#if DBL_MANT_DIG != LDBL_MANT_DIG && LDBL_MANT_DIG != 106
TEST_I_F(TItype, UTItype, long double, LDBL_MANT_DIG);
+#endif
exit (0);
}