5c9b21
--- m4-1.4.17/tests/test-isnanl.h.ori
5c9b21
+++ m4-1.4.17/tests/test-isnanl.h
5c9b21
@@ -51,6 +51,15 @@ main ()
5c9b21
   /* A bit pattern that is different from a Quiet NaN.  With a bit of luck,
5c9b21
      it's a Signalling NaN.  */
5c9b21
   {
5c9b21
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
5c9b21
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
5c9b21
+       represented as the corresponding 64-bit IEEE values in the first double;
5c9b21
+       the second is ignored.  Manipulate only the first double.  */
5c9b21
+    #undef NWORDS
5c9b21
+    #define NWORDS \
5c9b21
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
5c9b21
+#endif
5c9b21
+
5c9b21
     memory_long_double m;
5c9b21
     m.value = NaNl ();
5c9b21
 # if LDBL_EXPBIT0_BIT > 0
5c9b21