From fa18ba7505b5910959d73705aaff18bb9b3616a1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 4 Aug 2016 02:25:24 +0200 Subject: [PATCH] Revert "Better AVX2 detection for GCC compilers" This reverts commit 534e0774e37ee8faebfda0ae785567ac26d2d6ac. --- configure.ac | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 1b24bf50..e3132364 100644 --- a/configure.ac +++ b/configure.ac @@ -398,15 +398,10 @@ AS_IF([test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"], [ #endif #pragma GCC target("avx2") #include -]], [[ -__m256i x = _mm256_abs_epi8(_mm256_setzero_si256()); -#ifdef __GNUC__ -__asm__ __volatile__ ("vpermq $1,%ymm1,%ymm2"); -#endif -]])], +]], [[ __m256i x = _mm256_abs_epi8(_mm256_setzero_si256()); ]])], [AC_MSG_RESULT(yes) AC_DEFINE([HAVE_AVX2INTRIN_H], [1], [AVX2 is available]) - AX_CHECK_COMPILE_FLAG([-mavx2], [CFLAGS_AVX2="-mavx2"]) + AX_CHECK_COMPILE_FLAG([-mavx2], [CFLAGS_AVX="-mavx2"]) AC_MSG_CHECKING(if _mm256_broadcastsi128_si256 is correctly defined) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #ifdef __native_client__