diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-02-15 01:13:15 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-02-15 01:13:15 +0000 |
commit | 10303eb74bfe33d46ef167d2ea31c746ea1cd6ad (patch) | |
tree | 68edb70240112a390d38f6cca50781db1d9c72a4 /sysdeps/x86_64/fpu/test-double-vlen8.c | |
parent | b4e4172da6d43ac47cdf6763b3531e5e23102ff9 (diff) | |
download | glibc-10303eb74bfe33d46ef167d2ea31c746ea1cd6ad.tar.gz glibc-10303eb74bfe33d46ef167d2ea31c746ea1cd6ad.tar.xz glibc-10303eb74bfe33d46ef167d2ea31c746ea1cd6ad.zip |
Move most libmvec test contents from .c to .h files.
The libmvec tests put substantive, architecture-specific contents in .c files such as test-double-vlen4.c, so making those files architecture-specific and causing issues for generating such files automatically when splitting up tests by function. This patch moves all the substantive contents to .h files, so the .c files only include the .h file and then libm-test.c. This allows for automatic generation of per-function .c files in future. The .h files in turn #include or #include_next the architecture-independent file and add the architecture-specific definitions to that. (Splitting by function should in fact allow the TEST_VECTOR_* macros to be replaced by sysdeps makefile information on which functions to test in each case, removing the need for gen-libm-have-vector-test.sh as well as removing the need for some of the architecture-specific headers.) Tested for x86_64. * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here. New file. * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here. New file. * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here. New file. * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here. New file. * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here. New file. * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here. New file. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here. New file. * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to, and include ... * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here. New file.
Diffstat (limited to 'sysdeps/x86_64/fpu/test-double-vlen8.c')
-rw-r--r-- | sysdeps/x86_64/fpu/test-double-vlen8.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sysdeps/x86_64/fpu/test-double-vlen8.c b/sysdeps/x86_64/fpu/test-double-vlen8.c index 6decfc6b25..04db81ac41 100644 --- a/sysdeps/x86_64/fpu/test-double-vlen8.c +++ b/sysdeps/x86_64/fpu/test-double-vlen8.c @@ -16,15 +16,6 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#include "test-double-vlen8.h" - -#define TEST_VECTOR_cos 1 -#define TEST_VECTOR_sin 1 -#define TEST_VECTOR_sincos 1 -#define TEST_VECTOR_log 1 -#define TEST_VECTOR_exp 1 -#define TEST_VECTOR_pow 1 - -#define REQUIRE_AVX512F +#include <test-double-vlen8.h> #include "libm-test.c" |