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