From 583919d70763671ed9feeaa14e1f66379aff88cc Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Sun, 20 Mar 2016 15:21:40 +0200 Subject: Fix ARM NEON support detection on ARMv6 target * configure.ac (gcry_cv_gcc_inline_asm_neon): Use '.arm' directive instead of '.thumb'. -- Fix allows building ARM NEON assembly implementations when compiler target is ARMv6. This enables NEON implementations on ARMv7+NEON CPUs running on ARMv6 OS (for example, Raspbian on Raspberry Pi 2/3). Signed-off-by: Jussi Kivilinna --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8ed8d26b..6a2d61bf 100644 --- a/configure.ac +++ b/configure.ac @@ -1487,7 +1487,7 @@ AC_CACHE_CHECK([whether GCC inline assembler supports NEON instructions], AC_COMPILE_IFELSE([AC_LANG_SOURCE( [[__asm__( ".syntax unified\n\t" - ".thumb\n\t" + ".arm\n\t" ".fpu neon\n\t" "vld1.64 {%q0-%q1}, [%r0]!;\n\t" "vrev64.8 %q0, %q3;\n\t" -- cgit v1.2.1