From: Andy Polyakov Date: Wed, 17 Jan 2007 20:12:41 +0000 (+0000) Subject: Make armv4t-mont module backward binary compatible with armv4 and rename it X-Git-Tag: OpenSSL_0_9_8k^2~999 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=64aecc672042129bdc75c711ebb8f3f3ad99cd17 Make armv4t-mont module backward binary compatible with armv4 and rename it accordingly. --- diff --git a/crypto/bn/asm/armv4t-mont.pl b/crypto/bn/asm/armv4-mont.pl similarity index 97% rename from crypto/bn/asm/armv4t-mont.pl rename to crypto/bn/asm/armv4-mont.pl index ba585e7daf..26eca61e7e 100644 --- a/crypto/bn/asm/armv4t-mont.pl +++ b/crypto/bn/asm/armv4-mont.pl @@ -61,7 +61,7 @@ bn_mul_mont: cmp $num,#2 movlt r0,#0 addlt sp,sp,#2*4 - bxlt lr @ interoperate with Thumb ISA + blt .Labort stmdb sp!,{r4-r12,lr} @ save 10 registers @@ -177,7 +177,9 @@ bn_mul_mont: ldmia sp!,{r4-r12,lr} @ restore registers add sp,sp,#2*4 @ skip over {r0,r2} mov r0,#1 - bx lr @ interoperate with Thumb ISA +.Labort:tst lr,#1 + moveq pc,lr @ be binary compatible with V4, yet + bx lr @ interoperable with Thumb ISA:-) .Lsub: ldr $tj,[$tp],#4 ldr $nj,[$np],#4