about summary refs log tree commit diff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-06-08 14:56:04 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-06-08 14:56:04 -0500
commit5188b973250523d3e9c80ea3ab4001f696e6fa1a (patch)
tree031e77bb288dbc2b7f24921abece628a6cc6a79f /math/libm-test.inc
parent760723ec6ec6cf0e4bc9d46a248058625fa6e0ed (diff)
downloadglibc-5188b973250523d3e9c80ea3ab4001f696e6fa1a.tar.gz
glibc-5188b973250523d3e9c80ea3ab4001f696e6fa1a.tar.xz
glibc-5188b973250523d3e9c80ea3ab4001f696e6fa1a.zip
Generate new format names in auto-libm-test-out
This converts the inclusion macro for each test to use
the format specific macro. In addition, the format
specifier is removed as it is applied via the LIT() macro
which is itself applied when converting the auto inputs and
libm-test.inc into libm-test.c.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc14
1 files changed, 3 insertions, 11 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index ef869a7979..7913f44752 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -256,14 +256,6 @@
 						 ? 0			\
 						 : UNDERFLOW_EXCEPTION)
 
-/* Conditions used by tests generated by gen-auto-libm-tests.c.  */
-#define TEST_COND_flt_32 TEST_COND_binary32
-#define TEST_COND_dbl_64 TEST_COND_binary64
-#define TEST_COND_ldbl_96_intel TEST_COND_intel96
-#define TEST_COND_ldbl_96_m68k  TEST_COND_m68k96
-#define TEST_COND_ldbl_128 TEST_COND_binary128
-#define TEST_COND_ldbl_128ibm TEST_COND_ibm128
-
 #if LONG_MAX == 0x7fffffff
 # define TEST_COND_long32	1
 # define TEST_COND_long64	0
@@ -379,7 +371,7 @@ init_max_error (const char *name, int exact)
   prev_imag_max_error = find_ulps (name, func_imag_ulps,
 				   (sizeof (func_imag_ulps)
 				    / sizeof (func_imag_ulps[0])));
-#if TEST_COND_ldbl_128ibm
+#if TEST_COND_ibm128
   /* The documented accuracy of IBM long double division is 3ulp (see
      libgcc/config/rs6000/ibm-ldouble-format), so do not require
      better accuracy for libm functions that are exactly defined for
@@ -678,14 +670,14 @@ test_exceptions (const char *test_name, int exception)
 	 arithmetic.  */
 #ifdef FE_UNDERFLOW
       if ((exception & UNDERFLOW_EXCEPTION_OK) == 0
-	  && !(TEST_COND_ldbl_128ibm
+	  && !(TEST_COND_ibm128
 	       && (exception & UNDERFLOW_EXCEPTION) == 0))
 	test_single_exception (test_name, exception, UNDERFLOW_EXCEPTION,
 			       FE_UNDERFLOW, "Underflow");
 #endif
 #ifdef FE_INEXACT
       if ((exception & (INEXACT_EXCEPTION | NO_INEXACT_EXCEPTION)) != 0
-	  && !(TEST_COND_ldbl_128ibm
+	  && !(TEST_COND_ibm128
 	       && (exception & NO_INEXACT_EXCEPTION) != 0))
 	test_single_exception (test_name, exception, INEXACT_EXCEPTION,
 			       FE_INEXACT, "Inexact");