Skip to content

Commit

Permalink
asm/arm-xlate.pl: add alignd CHERI instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jul 23, 2024
1 parent 1eac2aa commit 58ca202
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/asm/arm-xlate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@

################################################################
# CHERI-specific synthetic instructions
my $alignd = sub {
my ($args,$comment) = split(m|\s*//|,shift);
$args =~ s/\b(?:x([0-9]+)|(sp))\b/c$1$2/g;
my @regs = split(m|,\s*|,$args);

"\talignd\t".join(',',@regs);
};

my $scvalue = sub {
my ($args,$comment) = split(m|\s*//|,shift);
$args =~ s/\b(?:x([0-9]+)|(sp))\b/c$1$2/g;
Expand Down

0 comments on commit 58ca202

Please sign in to comment.