]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add tests for underflow exception bugs 10846, 14036.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 24 May 2012 15:36:54 +0000 (15:36 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 24 May 2012 15:36:54 +0000 (15:36 +0000)
ChangeLog
NEWS
math/libm-test.inc

index 626078acd70a43767c55cdd2184f1622e8f1c3d0..d8724ba9cd9af11f5b3634a61ee438cef727a95f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
 
+       [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 586f40fd792dd21678df52b7d315a79050c846dc..7ccfb903ef61554d980bbe09faa30deaaf0c5176 100644 (file)
--- 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:
 
index 54248665d76207a05f557b67f6c7dd5f8e753b11..5946ca890b43429fbcf68b56a0e2677cd03abec7 100644 (file)
@@ -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);
 }