summary refs log tree commit diff
path: root/math/auto-libm-test-in
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-12-20 12:35:10 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-12-20 12:35:10 +0000
commitb7867a3bfb9d7e00204c088feb227abddfc7bb43 (patch)
tree469be824c12fb8883a3c84bd6864516805610068 /math/auto-libm-test-in
parent7fda568229f73137f54a8d5da071f5e73ea50627 (diff)
downloadglibc-b7867a3bfb9d7e00204c088feb227abddfc7bb43.tar.gz
glibc-b7867a3bfb9d7e00204c088feb227abddfc7bb43.tar.xz
glibc-b7867a3bfb9d7e00204c088feb227abddfc7bb43.zip
Move tests of cpow from libm-test.inc to auto-libm-test-in.
This patch moves tests of cpow to auto-libm-test-in, adding the
required support to gen-auto-libm-tests.

Tested x86_64 and x86 and ulps updated accordingly.

	* math/auto-libm-test-in: Add tests of cpow.
	* math/auto-libm-test-out: Regenerated.
	* math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
	* * math/gen-auto-libm-tests.c (func_calc_method): Add value
	mpc_cc_c.
	(func_calc_desc): Add mpc_cc_c union field.
	(test_functions): Add cpow.
	(special_fill_2pi): New function.
	(special_real_inputs): Add 2pi.
	(calc_generic_results): Handle mpc_cc_c.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
Diffstat (limited to 'math/auto-libm-test-in')
-rw-r--r--math/auto-libm-test-in11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index 4b3c7581b6..947b2af11a 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -412,6 +412,17 @@ cosh 22
 cosh 23
 cosh 24
 
+cpow 1 0 0 0
+cpow 2 0 10 0
+# Bug 14473: cpow results inaccurate.
+cpow e 0 0 2pi xfail
+cpow 2 3 4 0
+
+cpow 0.75 1.25 0.75 1.25
+cpow 0.75 1.25 1.0 1.0
+cpow 0.75 1.25 1.0 0.0
+cpow 0.75 1.25 0.0 1.0
+
 csqrt 0 0
 csqrt 0 -0
 csqrt -0 0