diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-16 05:11:26 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 12:51:56 +0800 |
commit | 9151ecbb5e5a3d2ee30826ab9cce3aa5575e3a70 (patch) | |
tree | 0f6de0fe57cab198dd249ff943ed5720d482517b | |
parent | b2ec6f72b86e2ed9d0244c2b4ad801706644c43b (diff) | |
download | glibc-9151ecbb5e5a3d2ee30826ab9cce3aa5575e3a70.zip glibc-9151ecbb5e5a3d2ee30826ab9cce3aa5575e3a70.tar.gz glibc-9151ecbb5e5a3d2ee30826ab9cce3aa5575e3a70.tar.bz2 |
x86-64: Disable libmvec ABI test for Clang
Unlike GCC, libmvec support in Clang is hard-coded. Clang doesn't use
macros defined in <bits/libm-simd-decl-stubs.h> to support new libmvec
functions added to glibc and can't vectorize all test loops to test
libmvec ABI:
https://github.com/llvm/llvm-project/issues/120868
disable libmvec ABI test for Clang.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
-rw-r--r-- | sysdeps/x86_64/fpu/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/x86_64/fpu/Makefile b/sysdeps/x86_64/fpu/Makefile index 8eb382a..8af53b3 100644 --- a/sysdeps/x86_64/fpu/Makefile +++ b/sysdeps/x86_64/fpu/Makefile @@ -28,6 +28,9 @@ endif ifneq ($(multi-arch),no) # Variables for libmvec tests. ifeq ($(subdir)$(build-mathvec),mathyes) +ifneq ($(have-test-clang),yes) +# Clang 19 can't vectorize all test loops to test libmvec ABI: +# https://github.com/llvm/llvm-project/issues/120868 libmvec-tests += double-vlen2 double-vlen4 double-vlen4-avx2 \ float-vlen4 float-vlen8 float-vlen8-avx2 \ double-vlen8 float-vlen16 @@ -36,6 +39,7 @@ tests += \ $(libmvec-abi-func-avx-tests) \ $(libmvec-abi-func-avx2-tests) \ $(libmvec-abi-func-avx512f-tests) +endif double-vlen2-funcs = $(libmvec-funcs) double-vlen4-funcs = $(libmvec-funcs) |