2012-02-29 Joseph Myers <joseph@codesourcery.com>
+ [BZ #5794]
+ * math/libm-test.inc (expm1_test): Add test for bug 5794.
+ * sysdeps/i386/fpu/libm-test-ulps: Update.
+ * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
+
* sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
TEST_f_f (expm1, 1, M_El - 1.0);
TEST_f_f (expm1, 0.75L, 1.11700001661267466854536981983709561L);
+#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384
+ TEST_f_f (expm1, 11356.25L, 9.05128237311923300051376115753226014206e+4931L);
+#endif
+
errno = 0;
TEST_f_f (expm1, 100000.0, plus_infty);
check_int ("errno for expm1(large) == ERANGE", errno, ERANGE, 0, 0, 0);
# expm1
Test "expm1 (1) == M_El - 1.0":
ildouble: 1
+Test "expm1 (11356.25) == 9.05128237311923300051376115753226014206e+4931":
+ldouble: 1
# gamma
Test "gamma (-0.5) == log(2*sqrt(pi))":
Function: "expm1":
ildouble: 1
+ldouble: 1
Function: "gamma":
double: 1