[vlc-devel] [PATCH 01/25] configure: fix AVX / AVX2 inline check
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Apr 14 12:40:12 CEST 2020
From: Lyndon Brown <jnqnfe at gmail.com>
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4fd1240d09..d1865187cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1615,7 +1615,7 @@ frobzor = (uint64_t)_mm256_extract_epi64(a, 0);]])], [
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");
+asm volatile("vxorps %%ymm1,%%ymm2,%%ymm3"::"r"(p):"ymm1", "ymm2", "ymm3");
]])
], [
ac_cv_avx_inline=yes
@@ -1631,7 +1631,7 @@ asm volatile("xorps256 %%ymm1,%%ymm2"::"r"(p):"ymm1", "ymm2");
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");
+asm volatile("vpunpckhqdq %%ymm1,%%ymm2,%%ymm3"::"r"(p):"ymm1", "ymm2", "ymm3");
]])
], [
ac_cv_avx2_inline=yes
--
2.24.1
More information about the vlc-devel
mailing list