Test rint and nearbyint with same inputs, in all rounding modes.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 17 Mar 2014 21:18:18 +0000 (21:18 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 17 Mar 2014 21:18:18 +0000 (21:18 +0000)
commitb36208627c3cd3b5f031a4e42d0f21211f7ccba0
tree794ab9550f30e76a9a7f04bed9a75e9aac9274a8
parent04ec140a2e250a616794285e19d481cf3fa4e790
Test rint and nearbyint with same inputs, in all rounding modes.

This patch arranges for rint and nearbyint to be tested by
libm-test.inc with the same inputs (previously each had some test
inputs the other didn't, although there was a lot of overlap as well),
and for nearbyint to be tested in all rounding modes where previously
it was only tested in round-to-nearest mode.  The expected results are
the same for each function, except that rint is expected to have
"inexact" exceptions for non-integer input and nearbyint is expected
not to have those exceptions.

Tested x86_64 and x86.

* math/libm-test.inc (nearbyint_test_data): Include all tests used
for rint.  Include results for all rounding modes.
(nearbyint_test): Use ALL_RM_TEST.
(rint_test_data): Include all tests used for nearbyint.
ChangeLog
math/libm-test.inc