arm: Always unconditionally declare .arch armv7-a
authorMartin Storsjö <martin@martin.st>
Thu, 4 May 2017 19:00:51 +0000 (22:00 +0300)
committerHenrik Gramner <henrik@gramner.com>
Sun, 21 May 2017 20:41:07 +0000 (22:41 +0200)
We already unconditionally declare .fpu neon and try to build all the
neon codepaths (but only execute them conditionally based on a runtime
check).

This fixes builds targeting armv6, where the rbit instruction isn't
available. This instruction is only used within a neon function in
any case, so there's little point in emulating it.

common/arm/asm.S

index c46b61b..0472d11 100644 (file)
 .syntax unified
 
 #ifndef __APPLE__
-#if   HAVE_NEON
-        .arch           armv7-a
-#elif HAVE_ARMV6T2
-        .arch           armv6t2
-#elif HAVE_ARMV6
-        .arch           armv6
-#endif
-
+.arch armv7-a
 .fpu neon
 #endif