mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Require BMI2 for AVX2 build
Any processor implementing AVX2 should also implement BMI2
This commit is contained in:
parent
f66cb23d5b
commit
940b0e9e6a
|
@ -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([-msse2], [flag_sse2="true"])
|
||||||
AX_CHECK_COMPILE_FLAG([-mbmi], [flag_bmi="true"])
|
AX_CHECK_COMPILE_FLAG([-mbmi], [flag_bmi="true"])
|
||||||
AX_CHECK_COMPILE_FLAG([-mabm], [flag_abm="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_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_SSE4_1], [test x"$flag_sse4_1" = x"true"])
|
||||||
AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"])
|
AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"])
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@ endif #HAVE_PPC
|
||||||
if HAVE_X86
|
if HAVE_X86
|
||||||
|
|
||||||
if HAVE_AVX2
|
if HAVE_AVX2
|
||||||
libavx2_la_CFLAGS = -mavx2 -mbmi -mabm
|
libavx2_la_CFLAGS = -mavx2 -mbmi -mabm -mbmi2
|
||||||
endif
|
endif
|
||||||
if HAVE_SSE4_1
|
if HAVE_SSE4_1
|
||||||
libsse41_la_CFLAGS = -msse4.1
|
libsse41_la_CFLAGS = -msse4.1
|
||||||
|
|
Loading…
Reference in a new issue