Skip to content

Commit

Permalink
asm/arm-xlate.pl: make it work with less tolerant assemblers, e.g. Ap…
Browse files Browse the repository at this point in the history
…ple's.
  • Loading branch information
dot-asm committed Sep 2, 2022
1 parent 711e1ee commit 3db083d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/asm/arm-xlate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ sub expand_line {
$line =~ s/#:lo12:(\w+)/$1\@PAGEOFF/;
}

if ($flavour =~ /64/) {
# "vX.Md[N]" -> "vX.d[N]
$line =~ s/\b(v[0-9]+)\.[1-9]+([bhsd]\[[0-9]+\])/$1.$2/;
}

return $line;
}

Expand Down

0 comments on commit 3db083d

Please sign in to comment.