From 7b91e52eb9fd6012a0804febc7821b9484e6faa6 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 11 Nov 2012 22:41:46 +0100 Subject: [PATCH] x86: Require an assembler able to cope with AVX instructions All modern assemblers have this capability. Older NASM versions that lack the capability produce code that crashes at runtime, so it's better to error out during the build process instead. (cherry picked from commit e287201c77dc7a7a9759d56d8f48ae719b7e69a9) Signed-off-by: Diego Biurrun --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index f4c327439a..6a2ff4fa01 100755 --- a/configure +++ b/configure @@ -2739,9 +2739,8 @@ EOF elf*) enabled debug && append YASMFLAGS $yasm_debug ;; esac - check_yasm "pextrd [eax], xmm0, 1" && enable yasm || + check_yasm "vextractf128 xmm0, ymm0, 0" && enable yasm || die "yasm not found, use --disable-yasm for a crippled build" - check_yasm "vextractf128 xmm0, ymm0, 0" || disable avx fi case "$cpu" in