aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-09-30 18:06:02 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-09-30 18:06:02 +0000
commit93e448cbed1095c88133f2a304b1bbba72e480af (patch)
tree0094ff374778e476b37992ff5ebb8312b83276ca /sysdeps
parentf6d1d86d0c2cca118fd6a7734ea0ccd72b51c4b4 (diff)
downloadglibc-93e448cbed1095c88133f2a304b1bbba72e480af.tar
glibc-93e448cbed1095c88133f2a304b1bbba72e480af.tar.gz
glibc-93e448cbed1095c88133f2a304b1bbba72e480af.tar.bz2
glibc-93e448cbed1095c88133f2a304b1bbba72e480af.zip
Improve test coverage of real libm functions [a-e]*.
This patch improves test coverage of the real libm functions [a-e]*, ensuring that special cases and ranges of input values of potential significance (such as close to overflow and underflow thresholds) are more systematically covered. This is a followup to <https://sourceware.org/ml/libc-alpha/2013-12/msg00757.html> which covered [a-c]* (however, I found more weaknesses in the coverage of those functions when preparing this patch, hence the additional tests being added for them here). Addition of a test for acosh (-qNaN) is temporarily deferred, to be included as part of a fix for bug 19032 which was discovered in the course of adding these tests (and which illustrates the use of testing -qNaN as well as +qNaN as input even to functions for which the sign of a NaN isn't meant to be significant). Tested for x86_64 and x86. * math/auto-libm-test-in: Add more tests of acos, acosh, asin, atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2 and expm1. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (acos_test_data): Add more tests. (asin_test_data): Likewise. (asinh_test_data): Likewise. (atan_test_data): Likewise. (atanh_test_data): Likewise. (atan2_test_data): Likewise. (cbrt_test_data): Likewise. (ceil_test_data): Likewise. (copysign_test_data): Likewise. (cos_test_data): Likewise. (cosh_test_data): Likewise. (erf_test_data): Likewise. (erfc_test_data): Likewise. (exp_test_data): Likewise. (exp10_test_data): Likewise. (exp2_test_data): Likewise. (expm1_test_data): Likewise. * sysdeps/x86_64/fpu/libm-test-ulps: Update.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86_64/fpu/libm-test-ulps4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index ef3ab70369..c58886a901 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -1019,10 +1019,10 @@ Function: "cos_vlen16":
float: 1
Function: "cos_vlen2":
-double: 1
+double: 2
Function: "cos_vlen4":
-double: 1
+double: 2
float: 1
Function: "cos_vlen4_avx2":