Fix NEON build for older ARM CPUs
authorAdrian Bunk <adrian.bunk@movial.com>
Tue, 21 Jul 2009 00:16:32 +0000 (20:16 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Tue, 21 Jul 2009 00:16:32 +0000 (20:16 -0400)
The pld instruction used in the NEON assembler code is only available
for ARMv5e and >= ARMv6.

Set -mcpu=cortex-a8 when compiling the source file (similar to what is
already done for the SIMD build).

configure.ac

index 76cf691..5a49a6c 100644 (file)
@@ -384,7 +384,7 @@ AM_CONDITIONAL(USE_ARM_SIMD, test $have_arm_simd = yes)
 
 dnl ==========================================================================
 dnl Check for ARM NEON instructions
-ARM_NEON_CFLAGS="-mfpu=neon"
+ARM_NEON_CFLAGS="-mfpu=neon -mcpu=cortex-a8"
 
 have_arm_neon=no
 AC_MSG_CHECKING(whether to use ARM NEON)