提交 c09a0318 编写于 作者: A Andy Polyakov

Minor PPC assembler updates.

上级 fe716ba6
......@@ -98,6 +98,7 @@ $nlo="r25";
$nhi="r0";
$code=<<___;
.machine any
.text
.globl .bn_mul_mont
......
......@@ -58,7 +58,8 @@ my $text = sub {
my $machine = sub {
my $junk = shift;
my $arch = shift;
$arch = "ppc970" if ($arch eq "any" and $flavour =~ /osx/);
if ($arch eq "any" and $flavour =~ /osx/)
{ $arch = ($flavour =~ /64/) ? "ppc970-64" : "ppc970"; }
".machine $arch";
};
......
......@@ -62,10 +62,10 @@ sub BODY_00_19 {
my ($i,$a,$b,$c,$d,$e,$f)=@_;
my $j=$i+1;
$code.=<<___ if ($i==0);
lwz @X[$i],$i*4($inp)
lwz @X[$i],`$i*4`($inp)
___
$code.=<<___ if ($i<15);
lwz @X[$j],$j*4($inp)
lwz @X[$j],`$j*4`($inp)
add $f,$K,$e
rotlwi $e,$a,5
add $f,$f,@X[$i]
......@@ -149,6 +149,7 @@ ___
}
$code=<<___;
.machine any
.text
.globl .sha1_block_asm_data_order
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册