[MPlayer-cvslog] r37232 - trunk/configure

michael subversion at mplayerhq.hu
Wed Jul 2 01:53:51 CEST 2014


Author: michael
Date: Wed Jul  2 01:53:51 2014
New Revision: 37232

Log:
configure: add fma4 support to avoid breaking build

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Jul  1 15:35:47 2014	(r37231)
+++ trunk/configure	Wed Jul  2 01:53:51 2014	(r37232)
@@ -574,6 +574,7 @@ Advanced options:
   --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 @@ _avx=auto
 _avx2=auto
 _xop=auto
 _fma3=auto
+_fma4=auto
 _cmov=auto
 _fast_cmov=auto
 _fast_clz=auto
@@ -1431,6 +1433,8 @@ for ac_option do
   --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 @@ EOF
   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 @@ if test "$_runtime_cpudetection" = yes ;
     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 @@ if arm ; then
   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 "$_avx"       = yes && cpuexts="AVX
 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"


More information about the MPlayer-cvslog mailing list