diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-05-01 20:33:04 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-05-01 20:33:04 +0000 |
commit | e1483b365da03e4bab3882e30872ed331f48cd21 (patch) | |
tree | 91b18b49ab60f06f17b9257335e5d67178b06ecc /sysdeps | |
parent | c5a3a509dfddad86b9fef84b46a172f969cb9b4b (diff) | |
download | glibc-e1483b365da03e4bab3882e30872ed331f48cd21.tar.gz glibc-e1483b365da03e4bab3882e30872ed331f48cd21.tar.xz glibc-e1483b365da03e4bab3882e30872ed331f48cd21.zip |
Add more tests of exp, exp10, exp2, expm1.
This patch adds some randomly-generated tests of exp, exp10, exp2 and expm1 that are observed to increase ulps on x86_64. Tested for x86_64 and x86 and ulps updated accordingly. * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and expm1. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/i386/fpu/libm-test-ulps | 42 | ||||
-rw-r--r-- | sysdeps/x86_64/fpu/libm-test-ulps | 72 |
2 files changed, 85 insertions, 29 deletions
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps index 4d8054f54d..91e5c637f6 100644 --- a/sysdeps/i386/fpu/libm-test-ulps +++ b/sysdeps/i386/fpu/libm-test-ulps @@ -1339,6 +1339,10 @@ ifloat: 2 ildouble: 4 ldouble: 4 +Function: "exp": +ildouble: 1 +ldouble: 1 + Function: "exp10": ildouble: 1 ldouble: 1 @@ -1356,24 +1360,46 @@ double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 1 -ldouble: 1 +ildouble: 2 +ldouble: 2 Function: "exp10_upward": double: 1 float: 1 idouble: 1 ifloat: 1 +ildouble: 2 +ldouble: 2 + +Function: "exp2": +double: 1 +idouble: 1 +ildouble: 1 +ldouble: 1 + +Function: "exp2_downward": +ildouble: 1 +ldouble: 1 + +Function: "exp2_towardzero": +ildouble: 1 +ldouble: 1 + +Function: "exp2_upward": ildouble: 1 ldouble: 1 Function: "exp_downward": double: 1 idouble: 1 +ildouble: 1 +ldouble: 1 Function: "exp_towardzero": double: 1 idouble: 1 +ildouble: 1 +ldouble: 1 Function: "exp_upward": ildouble: 1 @@ -1404,8 +1430,8 @@ double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 3 -ldouble: 3 +ildouble: 4 +ldouble: 4 Function: "gamma": double: 1 @@ -1682,16 +1708,16 @@ double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 1 -ldouble: 1 +ildouble: 2 +ldouble: 2 Function: "pow10_upward": double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 1 -ldouble: 1 +ildouble: 2 +ldouble: 2 Function: "pow_downward": double: 1 diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps index 2a7cc4ddbf..8b4cdd4f06 100644 --- a/sysdeps/x86_64/fpu/libm-test-ulps +++ b/sysdeps/x86_64/fpu/libm-test-ulps @@ -1429,21 +1429,41 @@ ifloat: 5 ildouble: 4 ldouble: 4 +Function: "exp": +ildouble: 1 +ldouble: 1 + Function: "exp10": -double: 1 -idouble: 1 +double: 2 +idouble: 2 ildouble: 1 ldouble: 1 Function: "exp10_downward": -double: 1 +double: 2 float: 1 -idouble: 1 +idouble: 2 ifloat: 1 ildouble: 2 ldouble: 2 Function: "exp10_towardzero": +double: 2 +float: 1 +idouble: 2 +ifloat: 1 +ildouble: 2 +ldouble: 2 + +Function: "exp10_upward": +double: 2 +float: 1 +idouble: 2 +ifloat: 1 +ildouble: 2 +ldouble: 2 + +Function: "exp2": double: 1 float: 1 idouble: 1 @@ -1451,10 +1471,16 @@ ifloat: 1 ildouble: 1 ldouble: 1 -Function: "exp10_upward": -double: 1 +Function: "exp2_downward": +ildouble: 1 +ldouble: 1 + +Function: "exp2_towardzero": +ildouble: 1 +ldouble: 1 + +Function: "exp2_upward": float: 1 -idouble: 1 ifloat: 1 ildouble: 1 ldouble: 1 @@ -1462,10 +1488,14 @@ ldouble: 1 Function: "exp_downward": double: 1 idouble: 1 +ildouble: 1 +ldouble: 1 Function: "exp_towardzero": double: 1 idouble: 1 +ildouble: 1 +ldouble: 1 Function: "exp_upward": double: 1 @@ -1502,8 +1532,8 @@ double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 3 -ldouble: 3 +ildouble: 4 +ldouble: 4 Function: "gamma": double: 1 @@ -1788,34 +1818,34 @@ ildouble: 1 ldouble: 1 Function: "pow10": -double: 1 -idouble: 1 +double: 2 +idouble: 2 ildouble: 1 ldouble: 1 Function: "pow10_downward": -double: 1 +double: 2 float: 1 -idouble: 1 +idouble: 2 ifloat: 1 ildouble: 2 ldouble: 2 Function: "pow10_towardzero": -double: 1 +double: 2 float: 1 -idouble: 1 +idouble: 2 ifloat: 1 -ildouble: 1 -ldouble: 1 +ildouble: 2 +ldouble: 2 Function: "pow10_upward": -double: 1 +double: 2 float: 1 -idouble: 1 +idouble: 2 ifloat: 1 -ildouble: 1 -ldouble: 1 +ildouble: 2 +ldouble: 2 Function: "pow_downward": double: 1 |