summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-05-01 22:54:39 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-05-01 22:54:39 +0000
commit0957e15d0a58b389155750f6748f083196e06c31 (patch)
tree1c19f262e6b8c47125ea7ce4dc3e4101f40e657e /sysdeps
parent827bb5859c2b3e0471d6273617368fc76a821e6e (diff)
downloadglibc-0957e15d0a58b389155750f6748f083196e06c31.tar.gz
glibc-0957e15d0a58b389155750f6748f083196e06c31.tar.xz
glibc-0957e15d0a58b389155750f6748f083196e06c31.zip
Add more tests of tan.
This patch adds some randomly-generated tests of tan 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 tan.
	* 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-ulps8
-rw-r--r--sysdeps/x86_64/fpu/libm-test-ulps10
2 files changed, 10 insertions, 8 deletions
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index bb894e59ca..2286c8817c 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -1810,16 +1810,16 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "tan_towardzero":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "tan_upward":
 double: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 7fd3a3c591..0cb22a42fe 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -1952,6 +1952,8 @@ ildouble: 5
 ldouble: 5
 
 Function: "tan":
+float: 1
+ifloat: 1
 ildouble: 1
 ldouble: 1
 
@@ -1960,16 +1962,16 @@ double: 1
 float: 2
 idouble: 1
 ifloat: 2
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "tan_towardzero":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "tan_upward":
 double: 1