aboutsummaryrefslogtreecommitdiff
path: root/math/gen-libm-test.pl
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-06-23 21:59:34 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-06-23 21:59:34 +0000
commit7ed84b89f344c54dbf8665cb1cd29044bec62d18 (patch)
tree7db3275be9bd153de4d9b2f16c7c4eb19a69db65 /math/gen-libm-test.pl
parent78c12083068bc0390048b590e7e2fa837032c30c (diff)
downloadglibc-7ed84b89f344c54dbf8665cb1cd29044bec62d18.tar
glibc-7ed84b89f344c54dbf8665cb1cd29044bec62d18.tar.gz
glibc-7ed84b89f344c54dbf8665cb1cd29044bec62d18.tar.bz2
glibc-7ed84b89f344c54dbf8665cb1cd29044bec62d18.zip
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.
Diffstat (limited to 'math/gen-libm-test.pl')
-rwxr-xr-xmath/gen-libm-test.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/math/gen-libm-test.pl b/math/gen-libm-test.pl
index 9cdcc4343a..aa66e7676f 100755
--- a/math/gen-libm-test.pl
+++ b/math/gen-libm-test.pl
@@ -67,6 +67,7 @@ use vars qw (%auto_tests);
"plus_infty" => "inf",
"qnan_value" => "qNaN",
"snan_value" => "sNaN",
+ "snan_value_ld" => "sNaN",
);