[vlc-devel] [PATCH] configure: remove unused and broken AVX tests
RĂ©mi Denis-Courmont
remi at remlab.net
Mon Sep 14 19:28:28 CEST 2020
These tests do not work in either GCC 10 or Clang 9 or earlier.
Unsurprisingly for broken tests, nothing uses their results.
This partially reverts 629978898cf1716e3e927fb6b6a79762a5c4f0a8.
---
configure.ac | 35 -----------------------------------
1 file changed, 35 deletions(-)
diff --git a/configure.ac b/configure.ac
index 99e4669942..c2443aefa8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1652,41 +1652,6 @@ frobzor = (uint64_t)_mm256_extract_epi64(a, 0);]])], [
AS_IF([test "${ac_cv_c_avx2_intrinsics}" != "no"], [
AC_DEFINE(HAVE_AVX2_INTRINSICS, 1, [Define to 1 if AVX2 intrinsics are available.])
])
-
- VLC_SAVE_FLAGS
- CFLAGS="${CFLAGS} -mavx"
- AC_CACHE_CHECK([if $CC groks AVX inline assembly], [ac_cv_avx_inline], [
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[[
-void *p;
-asm volatile("xorps256 %%ymm1,%%ymm2"::"r"(p):"ymm1", "ymm2");
-]])
- ], [
- ac_cv_avx_inline=yes
- ], [
- ac_cv_avx_inline=no
- ])
- ])
-
- AS_IF([test "${ac_cv_avx_inline}" != "no" -a "${SYS}" != "solaris"], [
- AC_DEFINE(CAN_COMPILE_AVX, 1, [Define to 1 if AVX inline assembly is available.])
- ])
-
- AC_CACHE_CHECK([if $CC groks AVX2 inline assembly], [ac_cv_avx2_inline], [
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[[
-void *p;
-asm volatile("punpckhqdq256 %%ymm1,%%ymm2"::"r"(p):"ymm1", "ymm2");
-]])
- ], [
- ac_cv_avx2_inline=yes
- ], [
- ac_cv_avx2_inline=no
- ])
- ])
- VLC_RESTORE_FLAGS
- AS_IF([test "${ac_cv_avx2_inline}" != "no" -a "${SYS}" != "solaris"], [
- AC_DEFINE(CAN_COMPILE_AVX2, 1, [Define to 1 if AVX2 inline assembly is available.])
- have_avx2="yes"
- ])
])
AM_CONDITIONAL([HAVE_AVX2], [test "$have_avx2" = "yes"])
--
2.28.0
More information about the vlc-devel
mailing list