summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-05-15 19:03:02 -0300
committerMichael Niedermayer <michaelni@gmx.at>2014-05-16 05:24:59 +0200
commitcdff1cc98f3be4b8d5e51a352fc565d1a4e36f45 (patch)
tree9203c7f4605b1190d91321594dc656eba9b33fb5 /configure
parent7970959a94127f85a96218e95ddbd64c38c2a3ab (diff)
configure: add check for AVX inline support
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 8928f09a03..24f90906cf 100755
--- a/configure
+++ b/configure
@@ -4392,7 +4392,8 @@ EOF
check_inline_asm inline_asm_direct_symbol_refs '"movl '$extern_prefix'test, %eax"' ||
check_inline_asm inline_asm_direct_symbol_refs '"movl '$extern_prefix'test(%rip), %eax"'
- # check whether binutils is new enough to compile SSSE3/MMXEXT
+ # check whether binutils is new enough to compile AVX/SSSE3/MMXEXT
+ enabled avx && check_inline_asm avx_inline '"vextractf128 $1, %ymm0, %xmm1"'
enabled ssse3 && check_inline_asm ssse3_inline '"pabsw %xmm0, %xmm0"'
enabled mmxext && check_inline_asm mmxext_inline '"pmaxub %mm0, %mm1"'