diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-02-14 00:15:48 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-02-14 00:15:48 +0000 |
commit | b4e4172da6d43ac47cdf6763b3531e5e23102ff9 (patch) | |
tree | 636c8d308510f6fa80637265b69761be1e07ff10 /math/libm-test-support.h | |
parent | b987917e6aa7ffe2fd74f0b6a989438e6edd0727 (diff) | |
download | glibc-b4e4172da6d43ac47cdf6763b3531e5e23102ff9.tar.gz glibc-b4e4172da6d43ac47cdf6763b3531e5e23102ff9.tar.xz glibc-b4e4172da6d43ac47cdf6763b3531e5e23102ff9.zip |
Move INIT_ARCH_EXT call from libm-test-support to libm-test-driver.
libmvec tests involve calling INIT_ARCH_EXT during initialization then CHECK_ARCH_EXT before testing each function to see if the processor being used for testing supports the required instruction set extensions. After my refactoring of libm-test infrastructure, the INIT_ARCH_EXT call is in libm-test-support.c, built only once per floating-point type. Now, in fact all definitions of this macro are empty, but given that the definitions in sysdeps/x86_64/fpu/math-tests-arch.h are conditional on REQUIRE_* macros defined in particular vector tests, it seems more correct for the INIT_ARCH_EXT call to go instead in libm-test-driver.c which gets built separately with those REQUIRE_* macros properly defined. This patch moves the call there. Tested for x86_64 and x86. * math/libm-test-support.h: Do not include <math-tests-arch.h> here. * math/libm-test-support.c (libm_test_init): Do not call INIT_ARCH_EXT here. * math/libm-test-driver.c: Include <math-tests-arch.h>. (main): Call INIT_ARCH_EXT.
Diffstat (limited to 'math/libm-test-support.h')
-rw-r--r-- | math/libm-test-support.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/math/libm-test-support.h b/math/libm-test-support.h index 5c9af04f1a..2b95497148 100644 --- a/math/libm-test-support.h +++ b/math/libm-test-support.h @@ -30,7 +30,6 @@ #include <stdio.h> #include <tininess.h> #include <math-tests.h> -#include <math-tests-arch.h> #include <nan-high-order-bit.h> extern const int flag_test_errno; |