Skip to content

Commit

Permalink
SPARC assembly pack: enforce V8+ ABI constraints.
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <[email protected]>
  • Loading branch information
Andy Polyakov committed Jul 1, 2016
1 parent f198cc4 commit 2c12f22
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crypto/poly1305/asm/poly1305-sparcv9.pl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
.align 32
poly1305_blocks:
save %sp,-STACK_FRAME,%sp
andn $len,15,$len
srln $len,4,$len
brz,pn $len,.Lno_data
nop
Expand Down Expand Up @@ -202,7 +202,7 @@
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
Expand Down Expand Up @@ -285,7 +285,7 @@
.align 32
poly1305_blocks_vis3:
save %sp,-STACK_FRAME,%sp
andn $len,15,$len
srln $len,4,$len
brz,pn $len,.Lno_data
nop
Expand Down Expand Up @@ -323,7 +323,7 @@
.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
Expand Down Expand Up @@ -608,7 +608,7 @@
.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
Expand Down

0 comments on commit 2c12f22

Please sign in to comment.