From 180d43bc67cec071c5a0f4807aa66f7b6242edc1 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Mon, 6 Aug 2012 00:34:51 +0100 Subject: x86: use nop cpu directives only if supported nasm does not support 'CPU foonop' directives. This adds a configure test for the directive and uses it only if supported. Signed-off-by: Mans Rullgard --- configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure') diff --git a/configure b/configure index e9058d4c45..a97198c9ef 100755 --- a/configure +++ b/configure @@ -1084,6 +1084,7 @@ HAVE_LIST=" closesocket cmov cpuid + cpunop dcbzl dev_bktr_ioctl_bt848_h dev_bktr_ioctl_meteor_h @@ -2889,6 +2890,7 @@ EOF die "yasm not found, use --disable-yasm for a crippled build" check_yasm "vextractf128 xmm0, ymm0, 0" || disable avx check_yasm "vfmaddps ymm0, ymm1, ymm2, ymm3" || disable fma4 + check_yasm "CPU amdnop" && enable cpunop fi case "$cpu" in -- cgit v1.2.3