Message ID | 1523481378-16290-2-git-send-email-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show |
Series | [1/4] arm: Fix armv7 neon memchr on ARM mode | expand |
diff --git a/sysdeps/arm/armv7/strcmp.S b/sysdeps/arm/armv7/strcmp.S index 060b865..a20b3e5 100644 --- a/sysdeps/arm/armv7/strcmp.S +++ b/sysdeps/arm/armv7/strcmp.S @@ -82,8 +82,7 @@ #define data2 r3 #define syndrome tmp2 - -#ifndef NO_THUMB +#ifdef __thumb__ /* This code is best on Thumb. */ .thumb @@ -97,7 +96,8 @@ #else /* In ARM code we don't have ORN, but we can use MVN with a register shift. */ .macro prepare_mask mask_reg, nbits_reg - mvn \mask_reg, const_m1, S2HI \nbits_reg + S2HI \mask_reg, const_m1, \nbits_reg + mvn \mask_reg, \mask_reg .endm .macro apply_mask data_reg, mask_reg orr \data_reg, \data_reg, \mask_reg