Various IA-64 assembler fix-ups.
This commit is contained in:
parent
4aa5889e1a
commit
5bd4c26057
@ -71,13 +71,12 @@ AES_encrypt:
|
|||||||
mov prsave=pr };;
|
mov prsave=pr };;
|
||||||
|
|
||||||
.body
|
.body
|
||||||
{ .mib; and r40=3,r32
|
{ .mmi; and r40=3,r32
|
||||||
mov pr.rot=7<<16
|
ADDP r32=0,r32
|
||||||
brp.exit.imp .Le_rounds_cexit,.Le_cexit_insn
|
mov pr.rot=7<<16 };;
|
||||||
};;
|
|
||||||
#if defined(_HPUX_SOURCE) // HPUX is big-endian, cut 15 cycles...
|
#if defined(_HPUX_SOURCE) // HPUX is big-endian, cut 15 cycles...
|
||||||
{ .mib; cmp.ne p6,p0=r40,r0
|
{ .mib; cmp.ne p6,p0=r40,r0
|
||||||
ADDP r41=4,r32 // 1st arg, borrow teN
|
add r41=4,r32 // 1st arg, borrow teN
|
||||||
(p6) br.dpnt.many .Le_unaligned };;
|
(p6) br.dpnt.many .Le_unaligned };;
|
||||||
|
|
||||||
{ .mmi; ld4 r19=[r32],8
|
{ .mmi; ld4 r19=[r32],8
|
||||||
@ -156,8 +155,9 @@ AES_encrypt:
|
|||||||
add te2=2048,te0 }
|
add te2=2048,te0 }
|
||||||
.Le_common:
|
.Le_common:
|
||||||
{ .mib; add te3=3072,te0
|
{ .mib; add te3=3072,te0
|
||||||
add r35=-3,r35 };;
|
add r35=-3,r35
|
||||||
|
brp.exit.imp .Le_rounds_cexit,.Le_cexit_insn
|
||||||
|
};;
|
||||||
{ .mii; mov ar.lc=r35 // borrowed s1
|
{ .mii; mov ar.lc=r35 // borrowed s1
|
||||||
mov ar.ec=3 };;
|
mov ar.ec=3 };;
|
||||||
|
|
||||||
@ -362,13 +362,12 @@ AES_decrypt:
|
|||||||
mov prsave=pr };;
|
mov prsave=pr };;
|
||||||
|
|
||||||
.body
|
.body
|
||||||
{ .mib; and r40=3,r32
|
{ .mmi; and r40=3,r32
|
||||||
mov pr.rot=7<<16
|
ADDP r32=0,r32
|
||||||
brp.exit.imp .Ld_rounds_cexit,.Ld_cexit_insn
|
mov pr.rot=7<<16 };;
|
||||||
};;
|
|
||||||
#if defined(_HPUX_SOURCE) // HPUX is big-endian, cut 15 cycles...
|
#if defined(_HPUX_SOURCE) // HPUX is big-endian, cut 15 cycles...
|
||||||
{ .mib; cmp.ne p6,p0=r40,r0
|
{ .mib; cmp.ne p6,p0=r40,r0
|
||||||
ADDP r41=4,r32 // 1st arg, borrow teN
|
add r41=4,r32 // 1st arg, borrow teN
|
||||||
(p6) br.dpnt.many .Ld_unaligned };;
|
(p6) br.dpnt.many .Ld_unaligned };;
|
||||||
|
|
||||||
{ .mmi; ld4 r19=[r32],8
|
{ .mmi; ld4 r19=[r32],8
|
||||||
@ -447,8 +446,9 @@ AES_decrypt:
|
|||||||
add te2=2048,te0 }
|
add te2=2048,te0 }
|
||||||
.Ld_common:
|
.Ld_common:
|
||||||
{ .mib; add te3=3072,te0
|
{ .mib; add te3=3072,te0
|
||||||
add r35=-3,r35 };;
|
add r35=-3,r35
|
||||||
|
brp.exit.imp .Ld_rounds_cexit,.Ld_cexit_insn
|
||||||
|
};;
|
||||||
{ .mii; mov ar.lc=r35 // borrowed s1
|
{ .mii; mov ar.lc=r35 // borrowed s1
|
||||||
mov ar.ec=3 };;
|
mov ar.ec=3 };;
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ open STDOUT,">$output" || die "can't open $output: $!";
|
|||||||
if ($^O eq "hpux") {
|
if ($^O eq "hpux") {
|
||||||
$ADDP="addp4";
|
$ADDP="addp4";
|
||||||
for (@ARGV) { $ADDP="add" if (/[\+DD|\-mlp]64/); }
|
for (@ARGV) { $ADDP="add" if (/[\+DD|\-mlp]64/); }
|
||||||
}
|
} else { $ADDP="add"; }
|
||||||
for (@ARGV) { $big_endian=1 if (/\-DB_ENDIAN/);
|
for (@ARGV) { $big_endian=1 if (/\-DB_ENDIAN/);
|
||||||
$big_endian=0 if (/\-DL_ENDIAN/); }
|
$big_endian=0 if (/\-DL_ENDIAN/); }
|
||||||
if (!defined($big_endian))
|
if (!defined($big_endian))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user