Add more sNaN tests (most remaining real functions).
authorJoseph Myers <joseph@codesourcery.com>
Thu, 23 Jun 2016 21:59:34 +0000 (21:59 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 23 Jun 2016 21:59:34 +0000 (21:59 +0000)
commit7ed84b89f344c54dbf8665cb1cd29044bec62d18
tree7db3275be9bd153de4d9b2f16c7c4eb19a69db65
parent78c12083068bc0390048b590e7e2fa837032c30c
Add more sNaN tests (most remaining real functions).

This patch adds tests of sNaN inputs to more functions to
libm-test.inc.  This covers the remaining real functions except for
scalb, where there's a bug to fix, and hypot pow fmin fmax, where
there are cases where a qNaN input does not result in a qNaN output
and so sNaN support according to TS 18661-1 is more of a new feature.

Tested for x86_64 and x86.

* math/libm-test.inc (snan_value_ld): New macro.
(isgreater_test_data): Add sNaN tests.
(isgreaterequal_test_data): Likewise.
(isless_test_data): Likewise.
(islessequal_test_data): Likewise.
(islessgreater_test_data): Likewise.
(isunordered_test_data): Likewise.
(nextafter_test_data): Likewise.
(nexttoward_test_data): Likewise.
(remainder_test_data): Likewise.
(remquo_test_data): Likewise.
(significand_test_data): Likewise.
* math/gen-libm-test.pl (%beautify): Add snan_value_ld.
ChangeLog
math/gen-libm-test.pl
math/libm-test.inc