From cfaebe3e95d80159ea3f7b99abb3368dc02a210d Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 17 Jul 2017 15:40:21 -0700 Subject: [PATCH] dec_wasm,armv7: set ENABLE_NEON_BUILTIN_ADDSUB_SAT this path works with -march=armv7a -mfpu=neon with clang Change-Id: I0c04ab9a195c353aa2bfaf3ba2ca8a21e68ee5e1 --- src/dsp/dec_wasm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dsp/dec_wasm.c b/src/dsp/dec_wasm.c index 3b3fc543..216031f8 100644 --- a/src/dsp/dec_wasm.c +++ b/src/dsp/dec_wasm.c @@ -333,9 +333,7 @@ static void Transform(const int16_t* in, uint8_t* dst, int do_two) { #define ENABLE_X86_BUILTIN_ADDSUB_SAT #endif -#if defined(__aarch64__) -// For now, this only works for aarch64 -// TODO(slavarnway): Find a workaround for the ICE when using clang-3.9.1 +#if defined(__ARM_NEON__) || defined(__aarch64__) #define ENABLE_NEON_BUILTIN_ADDSUB_SAT #endif