X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbn%2Fasm%2Farmv4-mont.pl;h=14e0d2d1dd5bcc07d00ae9912e212afced972315;hp=3561ea2d615007c9ef61b532c049bdea3d98bcd1;hb=97a6a01f0f775cef912c8b0bf9628080255f892e;hpb=7d9cf7c0bbc17a2c00339e660c83ebf1a4f9061a diff --git a/crypto/bn/asm/armv4-mont.pl b/crypto/bn/asm/armv4-mont.pl index 3561ea2d61..14e0d2d1dd 100644 --- a/crypto/bn/asm/armv4-mont.pl +++ b/crypto/bn/asm/armv4-mont.pl @@ -163,9 +163,6 @@ bn_mul_mont: mov $ap,$tp @ "borrow" $ap sub $np,$np,$aj @ "rewind" $np to &np[0] - movs $tj,$nj,lsr#30 @ boundary condition... - beq .Lcopy @ ... is met - subs $tj,$tj,$tj @ "clear" carry flag .Lsub: ldr $tj,[$tp],#4 ldr $nj,[$np],#4 @@ -196,7 +193,9 @@ bn_mul_mont: bx lr @ interoperable with Thumb ISA:-) .size bn_mul_mont,.-bn_mul_mont .asciz "Montgomery multiplication for ARMv4, CRYPTOGAMS by " +.align 2 ___ +$code =~ s/\bbx\s+lr\b/.word\t0xe12fff1e/gm; # make it possible to compile with -march=armv4 print $code; close STDOUT;