Skip to content

Commit

Permalink
ppc/ppc-xlate.pl: add linux64v2 flavour.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Polyakov committed May 5, 2019
1 parent 2bc24a9 commit 50e1ff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ppc/ppc-xlate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
/osx/ && do { $name = "_$name";
last;
};
/linux.*(32|64le)/
/linux.*(32|64(le|v2))/
&& do { $ret .= ".globl $name";
if (!$$type) {
$ret .= "\n.type $name,\@function";
Expand Down Expand Up @@ -76,7 +76,7 @@
};
my $text = sub {
my $ret = ($flavour =~ /aix/) ? ".csect\t.text[PR],7" : ".text";
$ret = ".abiversion 2\n".$ret if ($flavour =~ /linux.*64le/);
$ret = ".abiversion 2\n".$ret if ($flavour =~ /linux.*64(le|v2)/);
$ret;
};
my $machine = sub {
Expand Down Expand Up @@ -182,7 +182,7 @@

# Some ABIs specify vrsave, special-purpose register #256, as reserved
# for system use.
my $no_vrsave = ($flavour =~ /aix|linux64le/);
my $no_vrsave = ($flavour =~ /aix|linux64(le|v2)/);
my $mtspr = sub {
my ($f,$idx,$ra) = @_;
if ($idx == 256 && $no_vrsave) {
Expand Down Expand Up @@ -316,7 +316,7 @@ sub vfour {
if ($label) {
my $xlated = ($GLOBALS{$label} or $label);
print "$xlated:";
if ($flavour =~ /linux.*64le/) {
if ($flavour =~ /linux.*64(le|v2)/) {
if ($TYPES{$label} =~ /function/) {
printf "\n.localentry %s,0\n",$xlated;
}
Expand Down

0 comments on commit 50e1ff6

Please sign in to comment.