From: Alan Modra Date: Tue, 27 Dec 2005 22:50:06 +0000 (+0000) Subject: fp-int-convert-timode.c: Don't test IBM Extended Double long doubles or repeat tests... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5156c0c3a78803759bd723877af0ef2baafea938;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5abbdade315..3cd14bf9c3f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-12-28 Alan Modra + + * 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 * 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 244fc31728a..2b27153044c 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); }