Consistently use arm_arch.h constants in armcap assembly code.
[openssl.git] / crypto / bn / asm / armv4-mont.pl
index 48e523013fe4523d9a9feac649dc6b491f5cdc4f..6fb5bb40fb5c9bdec33e10bd0690f10028c09849 100644 (file)
@@ -91,7 +91,7 @@ $code=<<___;
 #include "arm_arch.h"
 
 .text
-#if defined(__thumb2__) && !defined(__APPLE__)
+#if defined(__thumb2__)
 .syntax        unified
 .thumb
 #else
@@ -121,7 +121,7 @@ bn_mul_mont:
 #ifdef __APPLE__
        ldr     r0,[r0]
 #endif
-       tst     r0,#1                   @ NEON available?
+       tst     r0,#ARMV7_NEON          @ NEON available?
        ldmia   sp, {r0,r2}
        beq     .Lialu
        add     sp,sp,#8