diff options
Diffstat (limited to 'tests/test-isinf.c')
-rw-r--r-- | tests/test-isinf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-isinf.c b/tests/test-isinf.c index 0a13224e05..2505c32018 100644 --- a/tests/test-isinf.c +++ b/tests/test-isinf.c @@ -158,6 +158,15 @@ test_isinfl () /* A bit pattern that is different from a Quiet NaN. With a bit of luck, it's a Signalling NaN. */ { +#if defined __powerpc__ && LDBL_MANT_DIG == 106 + /* This is PowerPC "double double", a pair of two doubles. Inf and Nan are + represented as the corresponding 64-bit IEEE values in the first double; + the second is ignored. Manipulate only the first double. */ + #undef NWORDS + #define NWORDS \ + ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) +#endif + memory_long_double m; m.value = zerol / zerol; # if LDBL_EXPBIT0_BIT > 0 |