about summary refs log tree commit diff
path: root/math/auto-libm-test-in
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-06-24 16:37:44 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-06-24 16:37:44 +0000
commit6f874bd4d4063cacd9edd7f7607fb929f0db218f (patch)
tree189cf551a41b960625a93072a60070a9b44f61e2 /math/auto-libm-test-in
parentac831b362ad6ecd49643625481ec700a9812e52f (diff)
downloadglibc-6f874bd4d4063cacd9edd7f7607fb929f0db218f.tar.gz
glibc-6f874bd4d4063cacd9edd7f7607fb929f0db218f.tar.xz
glibc-6f874bd4d4063cacd9edd7f7607fb929f0db218f.zip
Move csin, csinh tests to auto-libm-test-in.
This patch moves most tests of csin and csinh with finite inputs from
libm-test.inc to auto-libm-test-in.  The remaining two tests of each
function with small arguments are not moved because moving them causes
the time required by gen-auto-libm-tests to go up from under 8 seconds
to over 11 minutes for me.  (The current development version of MPC
has had speed improvements for mpc_sin for some time, but there hasn't
been a release containing those improvements yet.)

Tested for x86_64 and x86.

	* math/auto-libm-test-in: Add more tests of csin and csinh.
	* math/auto-libm-test-out: Regenerated.
	* math/libm-test.inc (csin_test_data): Remove tests moved to
	auto-libm-test-in.
	(csinh_test_data): Likewise.
Diffstat (limited to 'math/auto-libm-test-in')
-rw-r--r--math/auto-libm-test-in50
1 files changed, 50 insertions, 0 deletions
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index 2389c051c4..89a2684598 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -955,16 +955,66 @@ cpow 0.75 1.25 1.0 1.0 xfail-rounding
 cpow 0.75 1.25 1.0 0.0
 cpow 0.75 1.25 0.0 1.0
 
+csin 0.0 0.0
+csin -0 0.0
+csin 0.0 -0
+csin -0 -0
+
+csin 0.75 1.25
+csin -2 -3
+
+csin 0.75 89.5
+csin 0.75 -89.5
+csin -0.75 89.5
+csin -0.75 -89.5
+csin 0.75 710.5
+csin 0.75 -710.5
+csin -0.75 710.5
+csin -0.75 -710.5
+csin 0.75 11357.25
+csin 0.75 -11357.25
+csin -0.75 11357.25
+csin -0.75 -11357.25
+
 csin 0.75 1e6
 csin 0.75 -1e6
 csin -0.75 1e6
 csin -0.75 -1e6
 
+csin 0x1p-149 180
+csin 0x1p-1074 1440
+csin 0x1p-16434 22730
+
+csinh 0.0 0.0
+csinh -0 0.0
+csinh 0.0 -0
+csinh -0 -0
+
+csinh 0.75 1.25
+csinh -2 -3
+
+csinh 89.5 0.75
+csinh -89.5 0.75
+csinh 89.5 -0.75
+csinh -89.5 -0.75
+csinh 710.5 0.75
+csinh -710.5 0.75
+csinh 710.5 -0.75
+csinh -710.5 -0.75
+csinh 11357.25 0.75
+csinh -11357.25 0.75
+csinh 11357.25 -0.75
+csinh -11357.25 -0.75
+
 csinh 1e6 0.75
 csinh -1e6 0.75
 csinh 1e6 -0.75
 csinh -1e6 -0.75
 
+csinh 180 0x1p-149
+csinh 1440 0x1p-1074
+csinh 22730 0x1p-16434
+
 csqrt 0 0
 csqrt 0 -0
 csqrt -0 0