From b29b6bb8fedf573ffe73147a07c851c1b6135adc Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 18 Mar 2014 18:47:46 +0000 Subject: Test scalbn and scalbln in all rounding modes, add more tests of negative arguments. Continuing the move to systematically testing libm functions in all rounding modes with ALL_RM_TEST, this patch converts the tests of scalbn and scalbln to use that macro. Those tests include cases of underflow and overflow, meaning the expected results depend on the rounding mode. For convenience in writing such tests manually, the patch adds the notation plus_oflow, minus_oflow, plus_uflow and minus_uflow for overflowing / underflowing results of each sign appropriate to the rounding mode being used, and gen-libm-test.pl is made to substitute in the appropriate values. The tests of underflow and overflow are extended to include negative arguments to provide better coverage (otherwise minus_oflow and minus_uflow wouldn't have been used at all). (A subsequent patch will make ldexp use the scalbn tests, as those functions are equivalent for binary floating point.) Tested x86_64 and x86. * math/gen-libm-test.pl (parse_args): Handle plus_oflow, minus_oflow, plus_uflow and minus_uflow in expected results. * math/libm-test.inc (scalbn_test_data): Add more tests of negative arguments. Use plus_oflow, minus_oflow, plus_uflow and minus_uflow. (scalbn_test): Use ALL_RM_TEST. (scalbln_test_data): Add more tests of negative arguments. Use plus_oflow, minus_oflow, plus_uflow and minus_uflow. (scalbln_test): Use ALL_RM_TEST. --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index aa893395c0..7f67727473 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2014-03-18 Joseph Myers + + * math/gen-libm-test.pl (parse_args): Handle plus_oflow, + minus_oflow, plus_uflow and minus_uflow in expected results. + * math/libm-test.inc (scalbn_test_data): Add more tests of + negative arguments. Use plus_oflow, minus_oflow, plus_uflow and + minus_uflow. + (scalbn_test): Use ALL_RM_TEST. + (scalbln_test_data): Add more tests of negative arguments. Use + plus_oflow, minus_oflow, plus_uflow and minus_uflow. + (scalbln_test): Use ALL_RM_TEST. + 2014-03-18 Roland McGrath * scripts/abilist.awk: Ignore symbols marked with .hidden. -- cgit 1.4.1