about summary refs log tree commit diff
path: root/math/libm-test.inc
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/libm-test.inc
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/libm-test.inc')
-rw-r--r--math/libm-test.inc13
1 files changed, 1 insertions, 12 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index ee183eab0e..abe12dbe2e 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -6564,20 +6564,9 @@ cosh_test_upward (void)
 
 static const struct test_cc_c_data cpow_test_data[] =
   {
-    TEST_cc_c (cpow, 1, 0, 0, 0, 1.0, 0.0),
-    TEST_cc_c (cpow, 2, 0, 10, 0, 1024.0, 0.0),
-#if 0
-    /* Disabled until we fix bug 14473.  */
-    TEST_cc_c (cpow, M_El, 0, 0, 2 * M_PIl, 1.0, 0.0),
-#endif
-    TEST_cc_c (cpow, 2, 3, 4, 0, -119.0, -120.0),
-
     TEST_cc_c (cpow, qnan_value, qnan_value, qnan_value, qnan_value, qnan_value, qnan_value),
 
-    TEST_cc_c (cpow, 0.75L, 1.25L, 0.75L, 1.25L, 0.117506293914473555420279832210420483L, 0.346552747708338676483025352060418001L),
-    TEST_cc_c (cpow, 0.75L, 1.25L, 1.0L, 1.0L, 0.0846958290317209430433805274189191353L, 0.513285749182902449043287190519090481L),
-    TEST_cc_c (cpow, 0.75L, 1.25L, 1.0L, 0.0L, 0.75L, 1.25L),
-    TEST_cc_c (cpow, 0.75L, 1.25L, 0.0L, 1.0L, 0.331825439177608832276067945276730566L, 0.131338600281188544930936345230903032L),
+    AUTO_TESTS_cc_c (cpow, tonearest),
   };
 
 static void