This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/36332] [4.4 Regression] FAIL: gcc.dg/torture/type-generic-1.c execution test on powerpc-*
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2008 21:51:21 -0000
- Subject: [Bug testsuite/36332] [4.4 Regression] FAIL: gcc.dg/torture/type-generic-1.c execution test on powerpc-*
- References: <bug-36332-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from janis at gcc dot gnu dot org 2008-07-08 21:51 -------
The tests fail on powerpc*-unknown-linux-gnu with 128-bit long doubles because
__builtin_fpclassify claims that __LDBL_MAX__ is infinite, not normal. Here's
a small testcase minimized from type-generic-1.c:
#define FP_NAN 1
#define FP_INFINITE 2
#define FP_NORMAL 3
#define FP_SUBNORMAL 4
#define FP_ZERO 5
#define fpclassify(X) __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
FP_SUBNORMAL, FP_ZERO, (X))
int
main ()
{
volatile long double ld;
ld = __LDBL_MAX__;
if (fpclassify (ld) != FP_NORMAL)
__builtin_abort ();
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36332