comparison configure @ 37162:b25434b964e0

Add setend ARM instruction detection for FFmpeg.
author reimar
date Thu, 28 Aug 2014 18:36:23 +0000
parents bb15cab6c059
children 04f2b82fc98f
comparison
equal deleted inserted replaced
37161:6d654ac9201e 37162:b25434b964e0
642 _armv5te=auto 642 _armv5te=auto
643 _armv6=auto 643 _armv6=auto
644 _armv6t2=auto 644 _armv6t2=auto
645 _armvfp=auto 645 _armvfp=auto
646 vfpv3=auto 646 vfpv3=auto
647 setend=auto
647 neon=auto 648 neon=auto
648 armthumb=auto 649 armthumb=auto
649 _iwmmxt=auto 650 _iwmmxt=auto
650 _mtrr=auto 651 _mtrr=auto
651 _altivec=auto 652 _altivec=auto
3150 vfpv3=no 3151 vfpv3=no
3151 inline_asm_check '"vmov.f32 s0, #1.0"' && vfpv3=yes 3152 inline_asm_check '"vmov.f32 s0, #1.0"' && vfpv3=yes
3152 fi 3153 fi
3153 echores "$vfpv3" 3154 echores "$vfpv3"
3154 3155
3156 echocheck "ARM setend"
3157 if test $setend = "auto" ; then
3158 setend=no
3159 inline_asm_check '"setend be"' && setend=yes
3160 fi
3161 echores "$setend"
3162
3155 echocheck "softfloat ABI" 3163 echocheck "softfloat ABI"
3156 softfloat=yes 3164 softfloat=yes
3157 cpp_condition_check '' 'defined(__ARM_PCS_VFP) || (!defined(__ARM_PCS) && !defined(__SOFTFP__))' && softfloat=no 3165 cpp_condition_check '' 'defined(__ARM_PCS_VFP) || (!defined(__ARM_PCS) && !defined(__SOFTFP__))' && softfloat=no
3158 if test $softfloat = "yes" ; then 3166 if test $softfloat = "yes" ; then
3159 def_vfp_args='#define HAVE_VFP_ARGS 0' 3167 def_vfp_args='#define HAVE_VFP_ARGS 0'
3188 inline_asm_check '"wunpckelub wr6, wr4"' && _iwmmxt=yes 3196 inline_asm_check '"wunpckelub wr6, wr4"' && _iwmmxt=yes
3189 fi 3197 fi
3190 echores "$_iwmmxt" 3198 echores "$_iwmmxt"
3191 fi 3199 fi
3192 3200
3193 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' 3201 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 SETEND NEON IWMMXT MMI VIS MVI'
3194 test "$_altivec" = yes && cpuexts="ALTIVEC $cpuexts" 3202 test "$_altivec" = yes && cpuexts="ALTIVEC $cpuexts"
3195 test "$_mmx" = yes && cpuexts="MMX $cpuexts" 3203 test "$_mmx" = yes && cpuexts="MMX $cpuexts"
3196 test "$_mmxext" = yes && cpuexts="MMX2 $cpuexts" 3204 test "$_mmxext" = yes && cpuexts="MMX2 $cpuexts"
3197 test "$_mmxext" = yes && cpuexts="MMXEXT $cpuexts" 3205 test "$_mmxext" = yes && cpuexts="MMXEXT $cpuexts"
3198 test "$_3dnow" = yes && cpuexts="AMD3DNOW $cpuexts" 3206 test "$_3dnow" = yes && cpuexts="AMD3DNOW $cpuexts"
3214 test "$_armv5te" = yes && cpuexts="ARMV5TE $cpuexts" 3222 test "$_armv5te" = yes && cpuexts="ARMV5TE $cpuexts"
3215 test "$_armv6" = yes && cpuexts="ARMV6 $cpuexts" 3223 test "$_armv6" = yes && cpuexts="ARMV6 $cpuexts"
3216 test "$_armv6t2" = yes && cpuexts="ARMV6T2 $cpuexts" 3224 test "$_armv6t2" = yes && cpuexts="ARMV6T2 $cpuexts"
3217 test "$_armvfp" = yes && cpuexts="VFP $cpuexts" 3225 test "$_armvfp" = yes && cpuexts="VFP $cpuexts"
3218 test "$vfpv3" = yes && cpuexts="VFPV3 $cpuexts" 3226 test "$vfpv3" = yes && cpuexts="VFPV3 $cpuexts"
3227 test "$setend" = yes && cpuexts="SETEND $cpuexts"
3219 test "$neon" = yes && cpuexts="NEON $cpuexts" 3228 test "$neon" = yes && cpuexts="NEON $cpuexts"
3220 test "$_iwmmxt" = yes && cpuexts="IWMMXT $cpuexts" 3229 test "$_iwmmxt" = yes && cpuexts="IWMMXT $cpuexts"
3221 test "$_vis" = yes && cpuexts="VIS $cpuexts" 3230 test "$_vis" = yes && cpuexts="VIS $cpuexts"
3222 test "$_mvi" = yes && cpuexts="MVI $cpuexts" 3231 test "$_mvi" = yes && cpuexts="MVI $cpuexts"
3223 3232