From bad7a2dd0b6758da05572dba4652b599ff621571 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 16 Aug 2010 20:44:00 +0300 Subject: [PATCH] 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. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" ], [ -- 2.39.2