about summary refs log tree commit diff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-04-30 09:37:01 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-04-30 09:37:01 +0000
commit9568c0c2255045456a09b441f89c6641e27a4bec (patch)
tree880b9ddc21a1bc83fbb5ec3af9c57db5365eef35 /math/libm-test.inc
parent6c1ff08cf8734e77b9201d968ae8bbc0626d09a4 (diff)
downloadglibc-9568c0c2255045456a09b441f89c6641e27a4bec.tar.gz
glibc-9568c0c2255045456a09b441f89c6641e27a4bec.tar.xz
glibc-9568c0c2255045456a09b441f89c6641e27a4bec.zip
Fix exp10 spurious overflows (bug 13924).
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 1b5d1c7e42..cd627cd829 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -3196,12 +3196,14 @@ exp10_test (void)
   TEST_f_f (exp10, nan_value, nan_value);
   TEST_f_f (exp10, 3, 1000);
   TEST_f_f (exp10, -1, 0.1L);
+#ifdef TEST_FLOAT /* Bug 13884: inaccurate results except for float.  */
+  TEST_f_f (exp10, 36, 1.0e36L);
+#endif
   TEST_f_f (exp10, 1e6, plus_infty, OVERFLOW_EXCEPTION);
   TEST_f_f (exp10, -1e6, 0);
 #ifndef TEST_LDOUBLE /* Bug 13914: spurious exceptions.  */
   TEST_f_f (exp10, max_value, plus_infty, OVERFLOW_EXCEPTION);
-  /* Bug 13924: spurious OVERFLOW exception may be present.  */
-  TEST_f_f (exp10, -max_value, 0, OVERFLOW_EXCEPTION_OK);
+  TEST_f_f (exp10, -max_value, 0);
 #endif
   TEST_f_f (exp10, 0.75L, 5.62341325190349080394951039776481231L);