changeset 36878:64e3020090dd

configure: add fma3
author michael
date Wed, 05 Mar 2014 01:15:08 +0000
parents f5bbd989e55a
children 8c1bbe0536ea
files configure
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Mar 04 19:28:58 2014 +0000
+++ b/configure	Wed Mar 05 01:15:08 2014 +0000
@@ -572,6 +572,7 @@
   --enable-sse42            enable SSE4.2 [autodetect]
   --enable-avx              enable AVX [autodetect]
   --enable-xop              enable XOP [autodetect]
+  --enable-fma3             enable FMA3 [autodetect]
   --enable-shm              enable shm [autodetect]
   --enable-altivec          enable AltiVec (PowerPC) [autodetect]
   --enable-armv5te          enable DSP extensions (ARM) [autodetect]
@@ -630,6 +631,7 @@
 _sse4_2=auto
 _avx=auto
 _xop=auto
+_fma3=auto
 _cmov=auto
 _fast_cmov=auto
 _fast_clz=auto
@@ -1423,6 +1425,8 @@
   --disable-avx) _avx=no;;
   --enable-xop) _xop=yes;;
   --disable-xop) _xop=no;;
+  --enable-fma3) _fma3=yes;;
+  --disable-fma3) _fma3=no;;
   --enable-mmxext) _mmxext=yes ;;
   --disable-mmxext) _mmxext=no ;;
   --enable-3dnow) _3dnow=yes ;;
@@ -1988,6 +1992,7 @@
   extcheck $_sse4_2   "sse4_2"   "pcmpgtq %%xmm0, %%xmm0"
   extcheck $_avx      "avx"      "vpabsw %%xmm0, %%xmm0"
   extcheck $_xop      "xop"      "vpmacsdd %%xmm0, %%xmm1, %%xmm2, %%xmm3"
+  extcheck $_fma3     "fma3"     "vfmadd132ps %%ymm0, %%ymm1, %%ymm2"
   extcheck $_cmov     "cmov"     "cmovb %%eax,  %%ebx"
 
   echocheck "mtrr support"
@@ -2668,6 +2673,7 @@
     test "$_sse4_2"   != no && _sse4_2=yes
     test "$_avx"      != no && _avx=yes
     test "$_xop"      != no && _xop=yes
+    test "$_fma3"     != no && _fma3=yes
     test "$_mtrr"     != no && _mtrr=yes
   fi
   if ppc; then
@@ -3168,7 +3174,7 @@
   echores "$_iwmmxt"
 fi
 
-cpuexts_all='ALTIVEC XOP AVX MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 VFP VFPV3 NEON IWMMXT MMI VIS MVI'
+cpuexts_all='ALTIVEC XOP AVX FMA3 MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 VFP VFPV3 NEON IWMMXT MMI VIS MVI'
 test "$_altivec"   = yes && cpuexts="ALTIVEC $cpuexts"
 test "$_mmx"       = yes && cpuexts="MMX $cpuexts"
 test "$_mmxext"    = yes && cpuexts="MMX2 $cpuexts"
@@ -3183,6 +3189,7 @@
 test "$_sse4_2"    = yes && cpuexts="SSE42 $cpuexts"
 test "$_avx"       = yes && cpuexts="AVX $cpuexts"
 test "$_xop"       = yes && cpuexts="XOP $cpuexts"
+test "$_fma3"      = yes && cpuexts="FMA3 $cpuexts"
 test "$_cmov"      = yes && cpuexts="I686 $cpuexts"
 test "$_fast_cmov" = yes && cpuexts="FAST_CMOV $cpuexts"
 test "$_fast_clz"  = yes && cpuexts="FAST_CLZ $cpuexts"