From 5188b973250523d3e9c80ea3ab4001f696e6fa1a Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Wed, 8 Jun 2016 14:56:04 -0500 Subject: 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. --- math/libm-test.inc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'math/libm-test.inc') 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"); -- cgit 1.4.1