Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions llvm/lib/Target/Sparc/SparcInstrAliases.td
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,10 @@ def : InstAlias<"flush", (FLUSH), 0>;
// unimp -> unimp 0
def : InstAlias<"unimp", (UNIMP 0), 0>;

// Not in spec, but we follow Solaris behavior of having `illtrap`
// interchangeable with `unimp` all the time.
def : MnemonicAlias<"illtrap", "unimp">;

def : MnemonicAlias<"iflush", "flush">;

def : MnemonicAlias<"stub", "stb">;
Expand Down
6 changes: 6 additions & 0 deletions llvm/test/MC/Sparc/sparc-misc-instructions.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@

! CHECK: unimp 0 ! encoding: [0x00,0x00,0x00,0x00]
unimp 0

! CHECK: unimp 0 ! encoding: [0x00,0x00,0x00,0x00]
illtrap

! CHECK: unimp 0 ! encoding: [0x00,0x00,0x00,0x00]
illtrap 0
Loading