summaryrefslogtreecommitdiffstats
path: root/crypto/aes/asm/aes-ppc.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-01-13 22:01:30 +0000
committerAndy Polyakov <appro@openssl.org>2008-01-13 22:01:30 +0000
commitaddd641f3a5e99ed90e3369914af5b356b725590 (patch)
tree1a6e7498fecce05807ee71d0641823e8422dbb02 /crypto/aes/asm/aes-ppc.pl
parentf63e4be392dfc4d5073653a5688d7240b9eaffb9 (diff)
Unify ppc assembler make rules.
Diffstat (limited to 'crypto/aes/asm/aes-ppc.pl')
-rw-r--r--crypto/aes/asm/aes-ppc.pl11
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/aes/asm/aes-ppc.pl b/crypto/aes/asm/aes-ppc.pl
index 903075ec37..ce8cf0b367 100644
--- a/crypto/aes/asm/aes-ppc.pl
+++ b/crypto/aes/asm/aes-ppc.pl
@@ -16,27 +16,26 @@
# at 1/2 of ppc_AES_encrypt speed, while ppc_AES_decrypt_compact -
# at 1/3 of ppc_AES_decrypt.
-$output = shift;
+$flavour = shift;
-if ($output =~ /64\.s/) {
+if ($flavour =~ /64/) {
$SIZE_T =8;
$STU ="stdu";
$POP ="ld";
$PUSH ="std";
-} elsif ($output =~ /32\.s/) {
+} elsif ($flavour =~ /32/) {
$SIZE_T =4;
$STU ="stwu";
$POP ="lwz";
$PUSH ="stw";
-} else { die "nonsense $output"; }
+} else { die "nonsense $flavour"; }
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
( $xlate="${dir}ppc-xlate.pl" and -f $xlate ) or
( $xlate="${dir}../../perlasm/ppc-xlate.pl" and -f $xlate) or
die "can't locate ppc-xlate.pl";
-( defined shift || open STDOUT,"| $^X $xlate $output" ) ||
- die "can't call $xlate: $!";
+open STDOUT,"| $^X $xlate $flavour ".shift || die "can't call $xlate: $!";
$FRAME=32*$SIZE_T;