65faf8
diff -up coreutils-8.22/gnulib-tests/test-isnanl.h.ppc coreutils-8.22/gnulib-tests/test-isnanl.h
65faf8
--- coreutils-8.22/gnulib-tests/test-isnanl.h.ppc	2014-06-23 14:01:05.925541920 +0200
65faf8
+++ coreutils-8.22/gnulib-tests/test-isnanl.h	2014-06-23 14:01:39.437617584 +0200
65faf8
@@ -51,6 +51,15 @@ main ()
65faf8
   /* A bit pattern that is different from a Quiet NaN.  With a bit of luck,
65faf8
      it's a Signalling NaN.  */
65faf8
   {
65faf8
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
65faf8
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
65faf8
+       represented as the corresponding 64-bit IEEE values in the first double;
65faf8
+       the second is ignored.  Manipulate only the first double.  */
65faf8
+    #undef NWORDS
65faf8
+    #define NWORDS \
65faf8
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
65faf8
+#endif
65faf8
+
65faf8
     memory_long_double m;
65faf8
     m.value = NaNl ();
65faf8
 # if LDBL_EXPBIT0_BIT > 0
65faf8
diff -up coreutils-8.22/gnulib-tests/test-signbit.c.ppc coreutils-8.22/gnulib-tests/test-signbit.c
65faf8
--- coreutils-8.22/gnulib-tests/test-signbit.c.ppc	2013-12-04 15:53:33.000000000 +0100
65faf8
+++ coreutils-8.22/gnulib-tests/test-signbit.c	2014-06-23 13:59:20.378307385 +0200
65faf8
@@ -151,6 +151,16 @@ test_signbitl ()
65faf8
     #define NWORDS \
65faf8
       ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
65faf8
     typedef union { long double value; unsigned int word[NWORDS]; } memory_long_double;
65faf8
+
65faf8
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
65faf8
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
65faf8
+       represented as the corresponding 64-bit IEEE values in the first double;
65faf8
+       the second is ignored.  Manipulate only the first double.  */
65faf8
+    #undef NWORDS
65faf8
+    #define NWORDS \
65faf8
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
65faf8
+#endif
65faf8
+
65faf8
     memory_long_double m;
65faf8
     m.value = zerol / zerol;
65faf8
 # if LDBL_EXPBIT0_BIT > 0