summary refs log tree commit diff
diff options
context:
space:
mode:
authorSunil K Pandey <skpgkp2@gmail.com>2022-02-23 08:43:45 -0800
committerSunil K Pandey <skpgkp2@gmail.com>2022-02-23 14:59:49 -0800
commit1153f7158608cfa3e7372e03bb82566a3dab1a19 (patch)
treec12bea6507d4515ee5177804a0d5b6e3faff0595
parentcf975913131169a753acf0621e08e72bc40a91e2 (diff)
downloadglibc-1153f7158608cfa3e7372e03bb82566a3dab1a19.tar.gz
glibc-1153f7158608cfa3e7372e03bb82566a3dab1a19.tar.xz
glibc-1153f7158608cfa3e7372e03bb82566a3dab1a19.zip
x86_64: Disable libmvec tests if multiarch not enabled [BZ# 28869]
This patch disable libmvec math tests if multiarch not enabled.

This fixes [BZ# 28869]

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r--sysdeps/x86_64/fpu/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86_64/fpu/Makefile b/sysdeps/x86_64/fpu/Makefile
index 9fb587cf8f..8278ce104a 100644
--- a/sysdeps/x86_64/fpu/Makefile
+++ b/sysdeps/x86_64/fpu/Makefile
@@ -24,6 +24,8 @@ libmvec-support += \
     $(addprefix svml_s_,$(addsuffix $(l),$(libmvec-funcs))))
 endif
 
+# Do not run libmvec tests if multiarch not enabled.
+ifneq ($(multi-arch),no)
 # Variables for libmvec tests.
 ifeq ($(subdir)$(build-mathvec),mathyes)
 libmvec-tests += double-vlen2 double-vlen4 double-vlen4-avx2 \
@@ -112,3 +114,4 @@ $(objpfx)bench-double-%.c: $(bench-libmvec-deps)
 	$(PYTHON) $(..)sysdeps/x86_64/fpu/scripts/bench_libmvec.py $(basename $(@F)); } > $@-tmp
 	mv -f $@-tmp $@
 endif
+endif