summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-06-30 16:06:48 +0200
committerAndy Polyakov <appro@openssl.org>2016-07-01 14:25:38 +0200
commit2c12f22c3364a1e562a19415f9929359945a7c21 (patch)
treeb3bc82fad4479941f576b8c2f1a739ff96a0782a
parentf198cc43a0eca4bf1a8e7f60c51af560f4346dc8 (diff)
SPARC assembly pack: enforce V8+ ABI constraints.
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rwxr-xr-xcrypto/poly1305/asm/poly1305-sparcv9.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/poly1305/asm/poly1305-sparcv9.pl b/crypto/poly1305/asm/poly1305-sparcv9.pl
index c22735a7b8..0bdd048925 100755
--- a/crypto/poly1305/asm/poly1305-sparcv9.pl
+++ b/crypto/poly1305/asm/poly1305-sparcv9.pl
@@ -146,7 +146,7 @@ poly1305_init:
.align 32
poly1305_blocks:
save %sp,-STACK_FRAME,%sp
- andn $len,15,$len
+ srln $len,4,$len
brz,pn $len,.Lno_data
nop
@@ -202,7 +202,7 @@ poly1305_blocks:
umul $r1,$h0,$d1
umul $r2,$h0,$d2
umul $r3,$h0,$d3
- sub $len,16,$len
+ sub $len,1,$len
add $inp,16,$inp
umul $s3,$h1,$t0
@@ -285,7 +285,7 @@ $code.=<<___;
.align 32
poly1305_blocks_vis3:
save %sp,-STACK_FRAME,%sp
- andn $len,15,$len
+ srln $len,4,$len
brz,pn $len,.Lno_data
nop
@@ -323,7 +323,7 @@ poly1305_blocks_vis3:
.Linp_aligned_vis3:
addcc $D0,$H0,$H0 ! accumulate input
- sub $len,16,$len
+ sub $len,1,$len
addxccc $D1,$H1,$H1
add $inp,16,$inp
@@ -608,7 +608,7 @@ poly1305_init_fma:
.align 32
poly1305_blocks_fma:
save %sp,-STACK_FRAME-48,%sp
- srlx $len,4,$len
+ srln $len,4,$len
brz,pn $len,.Labort
sub $len,1,$len