diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2013-04-26 19:25:19 +0000 |
|---|---|---|
| committer | Joseph Myers <joseph@codesourcery.com> | 2013-04-26 19:25:19 +0000 |
| commit | f0302940e7c2acb587971e3c99dfbd00aa4e2134 (patch) | |
| tree | 14ca5247684a4ca2ef2ea2f46c4d375cde6aa6b9 /math/libm-test.inc | |
| parent | aa630f590c9c7d070a7cdf3a2a88069ad6b63de9 (diff) | |
| download | glibc-f0302940e7c2acb587971e3c99dfbd00aa4e2134.tar.xz glibc-f0302940e7c2acb587971e3c99dfbd00aa4e2134.zip | |
Fix csin, csinh, ccos, ccosh missing underflows (bug 15405).
Diffstat (limited to 'math/libm-test.inc')
| -rw-r--r-- | math/libm-test.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index eb9fa710cd..a3d7731531 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -4570,6 +4570,9 @@ ccos_test (void) TEST_c_c (ccos, 0x1p-16434L, 22730, plus_infty, -1.217853148905605987081057582351152052687e4924L, OVERFLOW_EXCEPTION); #endif + TEST_c_c (ccos, min_subnorm_value * 0x1p120, 0x1p-120, 1.0, -min_subnorm_value, UNDERFLOW_EXCEPTION); + TEST_c_c (ccos, 0x1p-120, min_subnorm_value * 0x1p120, 1.0, -min_subnorm_value, UNDERFLOW_EXCEPTION); + END (ccos, complex); } @@ -4670,6 +4673,9 @@ ccosh_test (void) TEST_c_c (ccosh, 22730, 0x1p-16434L, plus_infty, 1.217853148905605987081057582351152052687e4924L, OVERFLOW_EXCEPTION); #endif + TEST_c_c (ccosh, min_subnorm_value * 0x1p120, 0x1p-120, 1.0, min_subnorm_value, UNDERFLOW_EXCEPTION); + TEST_c_c (ccosh, 0x1p-120, min_subnorm_value * 0x1p120, 1.0, min_subnorm_value, UNDERFLOW_EXCEPTION); + END (ccosh, complex); } @@ -5898,6 +5904,9 @@ csin_test (void) TEST_c_c (csin, 0x1p-16434L, 22730, 1.217853148905605987081057582351152052687e4924L, plus_infty, OVERFLOW_EXCEPTION); #endif + TEST_c_c (csin, min_subnorm_value, min_value, min_subnorm_value, min_value, UNDERFLOW_EXCEPTION); + TEST_c_c (csin, min_value, min_subnorm_value, min_value, min_subnorm_value, UNDERFLOW_EXCEPTION); + END (csin, complex); } @@ -5997,6 +6006,9 @@ csinh_test (void) TEST_c_c (csinh, 22730, 0x1p-16434L, plus_infty, 1.217853148905605987081057582351152052687e4924L, OVERFLOW_EXCEPTION); #endif + TEST_c_c (csinh, min_subnorm_value, min_value, min_subnorm_value, min_value, UNDERFLOW_EXCEPTION); + TEST_c_c (csinh, min_value, min_subnorm_value, min_value, min_subnorm_value, UNDERFLOW_EXCEPTION); + END (csinh, complex); } |
