changeset 37136:36638a3ccfe2

configure: add fma4 support to avoid breaking build
author michael
date Tue, 01 Jul 2014 23:53:51 +0000
parents 488545e72316
children 75d68ce0d43f
files configure
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 01 13:35:47 2014 +0000
+++ b/configure	Tue Jul 01 23:53:51 2014 +0000
@@ -574,6 +574,7 @@
   --enable-avx2             enable AVX2 [autodetect]
   --enable-xop              enable XOP [autodetect]
   --enable-fma3             enable FMA3 [autodetect]
+  --enable-fma4             enable FMA4 [autodetect]
   --enable-shm              enable shm [autodetect]
   --enable-altivec          enable AltiVec (PowerPC) [autodetect]
   --enable-armv5te          enable DSP extensions (ARM) [autodetect]
@@ -634,6 +635,7 @@
 _avx2=auto
 _xop=auto
 _fma3=auto
+_fma4=auto
 _cmov=auto
 _fast_cmov=auto
 _fast_clz=auto
@@ -1431,6 +1433,8 @@
   --disable-xop) _xop=no;;
   --enable-fma3) _fma3=yes;;
   --disable-fma3) _fma3=no;;
+  --enable-fma4) _fma4=yes;;
+  --disable-fma4) _fma4=no;;
   --enable-mmxext) _mmxext=yes ;;
   --disable-mmxext) _mmxext=no ;;
   --enable-3dnow) _3dnow=yes ;;
@@ -1998,6 +2002,7 @@
   extcheck $_avx2     "avx2"     "vextracti128 $0, %%ymm0, %%xmm0"
   extcheck $_xop      "xop"      "vpmacsdd %%xmm0, %%xmm1, %%xmm2, %%xmm3"
   extcheck $_fma3     "fma3"     "vfmadd132ps %%ymm0, %%ymm1, %%ymm2"
+  extcheck $_fma4     "fma4"     "vfmaddps %%ymm0, %%ymm1, %%ymm2, %%ymm3"
   extcheck $_cmov     "cmov"     "cmovb %%eax,  %%ebx"
 
   echocheck "mtrr support"
@@ -2684,6 +2689,7 @@
     test "$_avx2"     != no && _avx2=yes
     test "$_xop"      != no && _xop=yes
     test "$_fma3"     != no && _fma3=yes
+    test "$_fma4"     != no && _fma4=yes
     test "$_mtrr"     != no && _mtrr=yes
   fi
   if ppc; then
@@ -3184,7 +3190,7 @@
   echores "$_iwmmxt"
 fi
 
-cpuexts_all='ALTIVEC XOP AVX AVX2 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'
+cpuexts_all='ALTIVEC XOP AVX AVX2 FMA3 FMA4 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"
@@ -3201,6 +3207,7 @@
 test "$_avx2"      = yes && cpuexts="AVX2 $cpuexts"
 test "$_xop"       = yes && cpuexts="XOP $cpuexts"
 test "$_fma3"      = yes && cpuexts="FMA3 $cpuexts"
+test "$_fma4"      = yes && cpuexts="FMA4 $cpuexts"
 test "$_cmov"      = yes && cpuexts="I686 $cpuexts"
 test "$_fast_cmov" = yes && cpuexts="FAST_CMOV $cpuexts"
 test "$_fast_clz"  = yes && cpuexts="FAST_CLZ $cpuexts"