X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fppccpuid.pl;h=fe44ff07bc6040c9841c7837e9a2f3312082508e;hp=f1c856ff83215e57f5a52d887771dcab41ff6230;hb=492279f6f3acaa5365fbb41e4296f87569e4a8f2;hpb=9d35d08ab64d76f65261b1b1d524983c3a74b30f diff --git a/crypto/ppccpuid.pl b/crypto/ppccpuid.pl index f1c856ff83..fe44ff07bc 100755 --- a/crypto/ppccpuid.pl +++ b/crypto/ppccpuid.pl @@ -1,16 +1,15 @@ #!/usr/bin/env perl -$output = shift; +$flavour = shift; $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: $!"; -if ($output=~/64/) { +if ($flavour=~/64/) { $CMPLI="cmpldi"; $SHRLI="srdi"; $SIGNX="extsw"; @@ -21,6 +20,7 @@ if ($output=~/64/) { } $code=<<___; +.machine "any" .text .globl .OPENSSL_cpuid_setup