Skip to content

Commit

Permalink
Convert vmrs APSR_nzcv to fmrx r15 for apple-gas
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorsjo committed Sep 6, 2015
1 parent 1eed9b2 commit dd811e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gas-preprocessor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,9 @@ sub handle_serialized_line {
$line =~ s/\.int/.long/x;
$line =~ s/\.float/.single/x;
}
if ($as_type eq "apple-gas") {
$line =~ s/vmrs\s+APSR_nzcv/fmrx r15/x;
}
if ($as_type eq "armasm") {
$line =~ s/\.global/EXPORT/x;
$line =~ s/\.int/dcd/x;
Expand Down

0 comments on commit dd811e7

Please sign in to comment.