about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-07-08 18:36:32 +0000
committerJakub Jelinek <jakub@redhat.com>2007-07-08 18:36:32 +0000
commitfedca46896bdb702cb988837a0c2c5447e72ba2b (patch)
tree31c62471fcbd73fa2c509343be895ff35a908d1f
parent61558c1a0d7b99ca3cb7f1b8dde1bd26f336d840 (diff)
downloadglibc-fedca46896bdb702cb988837a0c2c5447e72ba2b.tar.gz
glibc-fedca46896bdb702cb988837a0c2c5447e72ba2b.tar.xz
glibc-fedca46896bdb702cb988837a0c2c5447e72ba2b.zip
* math/test-misc.c (main): Don't run last batch of tests with
	IBM long double format.
-rw-r--r--ChangeLog5
-rw-r--r--math/test-misc.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 90a1d6e01a..13dfe7e00c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-04  Jakub Jelinek  <jakub@redhat.com>
+
+	* math/test-misc.c (main): Don't run last batch of tests with
+	IBM long double format.
+
 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
 
 	[BZ #4745]
diff --git a/math/test-misc.c b/math/test-misc.c
index a1ad6885db..14fe38b90a 100644
--- a/math/test-misc.c
+++ b/math/test-misc.c
@@ -1235,7 +1235,12 @@ main (void)
     }
 #endif
 
-#if !defined NO_LONG_DOUBLE && LDBL_MANT_DIG >= DBL_MANT_DIG + 4
+/* Skip testing IBM long double format, for 2 reasons:
+   1) it only supports FE_TONEAREST
+   2) nextafter (0.0, 1.0) == nextafterl (0.0L, 1.0L), so
+      nextafter (0.0, 1.0) / 16.0L will be 0.0L.  */
+#if !defined NO_LONG_DOUBLE && LDBL_MANT_DIG >= DBL_MANT_DIG + 4 \
+    && LDBL_MANT_DIG != 106
   int oldmode = fegetround ();
   int j;
   for (j = 0; j < 4; j++)