poly1305/asm/poly1305-mips.pl: adhere to standard frame layout.
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
ff823ee89b
commit
8640f21093
1 changed files with 24 additions and 20 deletions
|
@ -170,20 +170,27 @@ $code.=<<___;
|
||||||
poly1305_blocks:
|
poly1305_blocks:
|
||||||
.set noreorder
|
.set noreorder
|
||||||
dsrl $len,4 # number of complete blocks
|
dsrl $len,4 # number of complete blocks
|
||||||
beqz $len,.Lno_data
|
bnez $len,poly1305_blocks_internal
|
||||||
nop
|
nop
|
||||||
|
jr $ra
|
||||||
|
nop
|
||||||
|
.end poly1305_blocks
|
||||||
|
|
||||||
.frame $sp,8*8,$ra
|
.align 5
|
||||||
|
.ent poly1305_blocks_internal
|
||||||
|
poly1305_blocks_internal:
|
||||||
|
.frame $sp,6*8,$ra
|
||||||
.mask $SAVED_REGS_MASK,-8
|
.mask $SAVED_REGS_MASK,-8
|
||||||
dsub $sp,8*8
|
.set noreorder
|
||||||
sd $s5,0($sp)
|
dsub $sp,6*8
|
||||||
sd $s4,8($sp)
|
sd $s5,40($sp)
|
||||||
|
sd $s4,32($sp)
|
||||||
___
|
___
|
||||||
$code.=<<___ if ($flavour =~ /nubi/i); # optimize non-nubi prologue
|
$code.=<<___ if ($flavour =~ /nubi/i); # optimize non-nubi prologue
|
||||||
sd $s3,16($sp)
|
sd $s3,24($sp)
|
||||||
sd $s2,24($sp)
|
sd $s2,16($sp)
|
||||||
sd $s1,32($sp)
|
sd $s1,8($sp)
|
||||||
sd $s0,40($sp)
|
sd $s0,0($sp)
|
||||||
___
|
___
|
||||||
$code.=<<___;
|
$code.=<<___;
|
||||||
.set reorder
|
.set reorder
|
||||||
|
@ -311,22 +318,19 @@ $code.=<<___;
|
||||||
sd $h2,16($ctx)
|
sd $h2,16($ctx)
|
||||||
|
|
||||||
.set noreorder
|
.set noreorder
|
||||||
ld $s5,0($sp) # epilogue
|
ld $s5,40($sp) # epilogue
|
||||||
ld $s4,8($sp)
|
ld $s4,32($sp)
|
||||||
___
|
___
|
||||||
$code.=<<___ if ($flavour =~ /nubi/i); # optimize non-nubi epilogue
|
$code.=<<___ if ($flavour =~ /nubi/i); # optimize non-nubi epilogue
|
||||||
ld $s3,16($sp)
|
ld $s3,24($sp)
|
||||||
ld $s2,24($sp)
|
ld $s2,16($sp)
|
||||||
ld $s1,32($sp)
|
ld $s1,8($sp)
|
||||||
ld $s0,40($sp)
|
ld $s0,0($sp)
|
||||||
___
|
___
|
||||||
$code.=<<___;
|
$code.=<<___;
|
||||||
dadd $sp,8*8
|
|
||||||
|
|
||||||
.Lno_data:
|
|
||||||
jr $ra
|
jr $ra
|
||||||
nop
|
dadd $sp,6*8
|
||||||
.end poly1305_blocks
|
.end poly1305_blocks_internal
|
||||||
___
|
___
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue