Revert "Better AVX2 detection for GCC compilers"

This reverts commit 534e0774e3.
This commit is contained in:
Frank Denis 2016-08-04 02:25:24 +02:00
parent d1eb837e21
commit fa18ba7505

View File

@ -398,15 +398,10 @@ AS_IF([test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"], [
#endif
#pragma GCC target("avx2")
#include <immintrin.h>
]], [[
__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__