[vlc-commits] commit: ARM: check ARMv6 support at the same time as NEON ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Mon Aug 16 19:48:33 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 16 20:44:00 2010 +0300| [e07cdf2fe817050d71b44edc25c0be6aac342201] | committer: Rémi Denis-Courmont
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.
(cherry picked from commit bad7a2dd0b6758da05572dba4652b599ff621571)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=e07cdf2fe817050d71b44edc25c0be6aac342201
---
configure.ac | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7b78276..f3f7524 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1381,7 +1381,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"
], [
More information about the vlc-commits
mailing list