From 17cadd0107842afb44d8721a0cea5ddb7c32b3d5 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 18 Oct 2019 06:03:56 -0400 Subject: Fix arm32 NEON target attribute syntax --- src/lib/utils/simd/simd_32.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/utils/simd/simd_32.h b/src/lib/utils/simd/simd_32.h index 272a1e0f6..23daf00e4 100644 --- a/src/lib/utils/simd/simd_32.h +++ b/src/lib/utils/simd/simd_32.h @@ -36,9 +36,13 @@ #define BOTAN_VPERM_ISA "ssse3" #define BOTAN_CLMUL_ISA "pclmul" #elif defined(BOTAN_SIMD_USE_NEON) - #define BOTAN_SIMD_ISA "+simd" - #define BOTAN_VPERM_ISA "+simd" - #define BOTAN_CLMUL_ISA "+crypto" + #if defined(BOTAN_TARGET_ARCH_IS_ARM64) + #define BOTAN_SIMD_ISA "+simd" + #define BOTAN_CLMUL_ISA "+crypto" + #else + #define BOTAN_SIMD_ISA "fpu=neon" + #endif + #define BOTAN_VPERM_ISA BOTAN_SIMD_ISA #elif defined(BOTAN_SIMD_USE_ALTIVEC) #define BOTAN_SIMD_ISA "altivec" #define BOTAN_VPERM_ISA "altivec" -- cgit v1.2.3