Require BMI2 for AVX2 build

Any processor implementing AVX2 should also implement BMI2
This commit is contained in:
Pauli Oikkonen 2018-12-14 16:29:22 +02:00
parent f66cb23d5b
commit 940b0e9e6a
2 changed files with 5 additions and 4 deletions

View file

@ -51,9 +51,10 @@ AX_CHECK_COMPILE_FLAG([-msse4.1], [flag_sse4_1="true"])
AX_CHECK_COMPILE_FLAG([-msse2], [flag_sse2="true"])
AX_CHECK_COMPILE_FLAG([-mbmi], [flag_bmi="true"])
AX_CHECK_COMPILE_FLAG([-mabm], [flag_abm="true"])
AX_CHECK_COMPILE_FLAG([-mbmi2], [flag_bmi2="true"])
AM_CONDITIONAL([HAVE_ALTIVEC], [test x"$flag_altivec" = x"true"])
AM_CONDITIONAL([HAVE_AVX2], [test x"$flag_avx2" = x"true" -a x"$flag_bmi" = x"true" -a x"$flag_abm" = x"true"])
AM_CONDITIONAL([HAVE_AVX2], [test x"$flag_avx2" = x"true" -a x"$flag_bmi" = x"true" -a x"$flag_abm" = x"true" -a x"$flag_bmi2" = x"true"])
AM_CONDITIONAL([HAVE_SSE4_1], [test x"$flag_sse4_1" = x"true"])
AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"])

View file

@ -213,7 +213,7 @@ endif #HAVE_PPC
if HAVE_X86
if HAVE_AVX2
libavx2_la_CFLAGS = -mavx2 -mbmi -mabm
libavx2_la_CFLAGS = -mavx2 -mbmi -mabm -mbmi2
endif
if HAVE_SSE4_1
libsse41_la_CFLAGS = -msse4.1