From debc4c9870dcf9f495561d3f7d8afd52878fecf0 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 22 Aug 2018 15:22:06 +0000 Subject: Don't redefine ROUNDING_TESTS_* in math/test-*-vlen*.h. This patch completes the move of ROUNDING_TESTS_* macros to typo-proof conventions by stopping redefining them in test-*-vlen*.h. Instead, libm-test-driver.c is made to check TEST_MATHVEC when setting non-to-nearest rounding modes. Tested for x86_64. * math/test-double-vlen2.h: Don't include . (ROUNDING_TESTS_double): Remove. * math/test-double-vlen4.h: Don't include . (ROUNDING_TESTS_double): Remove. * math/test-double-vlen8.h: Don't include . (ROUNDING_TESTS_double): Remove. * math/test-float-vlen16.h: Don't include . (ROUNDING_TESTS_float): Remove. * math/test-float-vlen4.h: Don't include . (ROUNDING_TESTS_float): Remove. * math/test-float-vlen8.h: Don't include . (ROUNDING_TESTS_float): Remove. * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check !TEST_MATHVEC here. (IF_ROUND_INIT_FE_TOWARDZERO): Likewise. (IF_ROUND_INIT_FE_UPWARD): Likewise. --- math/test-float-vlen4.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'math/test-float-vlen4.h') diff --git a/math/test-float-vlen4.h b/math/test-float-vlen4.h index 76374b98fe..cd01d1070e 100644 --- a/math/test-float-vlen4.h +++ b/math/test-float-vlen4.h @@ -19,10 +19,6 @@ #include "test-float.h" #include "test-math-no-inline.h" #include "test-math-vector.h" -#include - -#undef ROUNDING_TESTS_float -#define ROUNDING_TESTS_float(MODE) ((MODE) == FE_TONEAREST) #define VEC_SUFF _vlen4 #define VEC_LEN 4 -- cgit 1.4.1