diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-11-29 16:32:49 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-11-29 16:32:49 +0000 |
commit | 2a77a467b273c1a72fa204a8fcc6d22e6e20bb1c (patch) | |
tree | 6794ce10caf493365044d4bd4197c563244d1031 /math/libm-test.inc | |
parent | ea3bc4e821e20e70b093c9a33e54f99c79e0d847 (diff) | |
download | glibc-2a77a467b273c1a72fa204a8fcc6d22e6e20bb1c.zip glibc-2a77a467b273c1a72fa204a8fcc6d22e6e20bb1c.tar.gz glibc-2a77a467b273c1a72fa204a8fcc6d22e6e20bb1c.tar.bz2 |
Fix exp10 errno setting on underflow (bug 6787).
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r-- | math/libm-test.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index 7c599c1..6e9d37a 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -8134,10 +8134,12 @@ static const struct test_f_f_data exp10_test_data[] = TEST_f_f (exp10, 4932, 1.0e4932L), TEST_f_f (exp10, -4932, 1.0e-4932L, UNDERFLOW_EXCEPTION), #endif + TEST_f_f (exp10, 1e5, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), + TEST_f_f (exp10, -1e5, 0, UNDERFLOW_EXCEPTION|ERRNO_ERANGE), TEST_f_f (exp10, 1e6, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (exp10, -1e6, 0, UNDERFLOW_EXCEPTION), + TEST_f_f (exp10, -1e6, 0, UNDERFLOW_EXCEPTION|ERRNO_ERANGE), TEST_f_f (exp10, max_value, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (exp10, -max_value, 0, UNDERFLOW_EXCEPTION), + TEST_f_f (exp10, -max_value, 0, UNDERFLOW_EXCEPTION|ERRNO_ERANGE), TEST_f_f (exp10, 0.75L, 5.62341325190349080394951039776481231L), }; |