summaryrefslogtreecommitdiff
path: root/deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s')
-rw-r--r--deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s15
1 files changed, 8 insertions, 7 deletions
diff --git a/deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s b/deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s
index aefd29c9d8..5bba1e47ac 100644
--- a/deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s
+++ b/deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s
@@ -10,7 +10,7 @@ bn_mul_mont_int:
li 3,0
.long 0x4d800020
cmpwi 8,32
- bgelr
+ bgelr
slwi 8,8,2
li 12,-4096
addi 3,8,256
@@ -183,15 +183,16 @@ bn_mul_mont_int:
li 21,0
mtctr 8
subfe 3,21,3
- and 4,22,3
- andc 6,9,3
- or 4,4,6
.align 4
.Lcopy:
- lwzx 12,4,21
- stwx 12,9,21
+ lwzx 12,22,21
+ lwzx 10,9,21
+ and 12,12,3
+ andc 10,10,3
stwx 21,22,21
+ or 10,10,12
+ stwx 10,9,21
addi 21,21,4
bdnz .Lcopy
@@ -210,7 +211,7 @@ bn_mul_mont_int:
lwz 30,-8(12)
lwz 31,-4(12)
mr 1,12
- blr
+ blr
.long 0
.byte 0,12,4,0,0x80,12,6,0
.long 0