From 7a25eb06bfa838900bef78b975c38aa7e012b587 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 24 May 2012 15:36:54 +0000 Subject: [PATCH] Add tests for underflow exception bugs 10846, 14036. --- ChangeLog | 5 +++++ NEWS | 10 +++++----- math/libm-test.inc | 3 +++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 626078acd7..d8724ba9cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2012-05-24 Joseph Myers + [BZ #10846] + [BZ #14036] + * math/libm-test.inc (exp_test): Add test from bug 14036. + (pow_test): Add test from bug 10846. + * math/gen-libm-test.pl (%beautify): Remove entries for exceptions and other flags. (special_function): Do not include flags in test name. diff --git a/NEWS b/NEWS index 586f40fd79..7ccfb903ef 100644 --- a/NEWS +++ b/NEWS @@ -13,8 +13,8 @@ Version 2.16 2551, 2552, 2553, 2554, 2562, 2563, 2565, 2566, 2570, 2576, 2636, 2678, 3335, 3440, 3748, 3768, 3866, 3868, 3906, 3976, 3992, 4026, 4108, 4596, 4822, 5077, 5461, 5805, 5993, 6471, 6486, 6578, 6649, 6730, 6770, 6794, - 6884, 6890, 6894, 6895, 6907, 6911, 6959, 7064, 9739, 9902, 10110, - 10135, 10140, 10153, 10210, 10254, 10346, 10375 10545, 10716, 11174, + 6884, 6890, 6894, 6895, 6907, 6911, 6959, 7064, 9739, 9902, 10110, 10135, + 10140, 10153, 10210, 10254, 10346, 10375 10545, 10716, 10846, 11174, 11322, 11365, 11451, 11494, 11521, 11677, 11837, 11959, 12047, 12097, 12193, 12297, 12298, 12301, 12340, 12354, 13058, 13361, 13525, 13526, 13527, 13528, 13529, 13530, 13531, 13532, 13533, 13547, 13551, 13552, @@ -26,9 +26,9 @@ Version 2.16 13908, 13910, 13911, 13912, 13913, 13914, 13915, 13916, 13917, 13918, 13919, 13920, 13921, 13922, 13923, 13924, 13926, 13927, 13928, 13938, 13941, 13942, 13954, 13955, 13956, 13963, 13967, 13968, 13970, 13973, - 13979, 13983, 13986, 14012, 14027, 14033, 14034, 14040, 14043, 14044, - 14049, 14053, 14055, 14059, 14064, 14080, 14083, 14103, 14104, 14109, - 14122, 14123 + 13979, 13983, 13986, 14012, 14027, 14033, 14034, 14036, 14040, 14043, + 14044, 14049, 14053, 14055, 14059, 14064, 14080, 14083, 14103, 14104, + 14109, 14122, 14123 * ISO C11 support: diff --git a/math/libm-test.inc b/math/libm-test.inc index 54248665d7..5946ca890b 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); }