------- 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