From: RĂ©mi Denis-Courmont Date: Mon, 16 Aug 2010 17:44:00 +0000 (+0300) Subject: ARM: check ARMv6 support at the same time as NEON X-Git-Tag: 1.2.0-pre1~5417 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=bad7a2dd0b6758da05572dba4652b599ff621571;p=vlc ARM: check ARMv6 support at the same time as NEON Our NEON optimizations don't compile on ARMv5 and lower. It is dubious that there would be any use for NEON on such processor anyway. --- diff --git a/configure.ac b/configure.ac index b6b7f91057..1585ade39d 100644 --- a/configure.ac +++ b/configure.ac @@ -1351,7 +1351,10 @@ AS_IF([test "${enable_neon}" != "no"], [ AC_CACHE_CHECK([if $CC groks NEON inline assembly], [ac_cv_neon_inline], [ CFLAGS="${CFLAGS_save} -mfpu=neon" AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM(,[[asm volatile("vqmovun.s64 d0, q1":::"d0");]]) + AC_LANG_PROGRAM(,[[ +asm volatile("vqmovun.s64 d0, q1":::"d0"); +asm volatile("qadd r0, r0, r0":::"r0"); /* assume ARMv6 */ +]]) ], [ ac_cv_neon_inline="-mfpu=neon" ], [