diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-05-24 15:36:54 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-05-24 15:36:54 +0000 |
commit | 7a25eb06bfa838900bef78b975c38aa7e012b587 (patch) | |
tree | f991573e1f3553c874988aa69704d2e1274b3e0e /math | |
parent | edb00e4d736c6d9b52e21a9557e71823e5a8df22 (diff) | |
download | glibc-7a25eb06bfa838900bef78b975c38aa7e012b587.zip glibc-7a25eb06bfa838900bef78b975c38aa7e012b587.tar.gz glibc-7a25eb06bfa838900bef78b975c38aa7e012b587.tar.bz2 |
Add tests for underflow exception bugs 10846, 14036.
Diffstat (limited to 'math')
-rw-r--r-- | math/libm-test.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index 5424866..5946ca8 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -3501,6 +3501,7 @@ exp_test (void) #if !(defined TEST_LDOUBLE && LDBL_MAX_EXP > 1024) TEST_f_f (exp, 710, plus_infty, OVERFLOW_EXCEPTION); + TEST_f_f (exp, -1234, plus_zero, UNDERFLOW_EXCEPTION); #endif TEST_f_f (exp, 1e5, plus_infty, OVERFLOW_EXCEPTION); TEST_f_f (exp, max_value, plus_infty, OVERFLOW_EXCEPTION); @@ -6732,6 +6733,8 @@ pow_test (void) TEST_ff_f (pow, 0x1.0000000000001p0L, -0x1.23456789abcdfp61L, 1.0118762747828234466621210689458255908670e-253L); #endif + TEST_ff_f (pow, 2.0L, -100000.0L, plus_zero, UNDERFLOW_EXCEPTION); + END (pow); } |