[M68k] Add `TRAP`, `TRAPV`, `BKPT`, `ILLEGAL` instructions
authorIan Douglas Scott <ian@iandouglasscott.com>
Tue, 4 Apr 2023 23:32:14 +0000 (16:32 -0700)
committerMin-Yih Hsu <minyihh@uci.edu>
Tue, 4 Apr 2023 23:45:14 +0000 (16:45 -0700)
commitdbbf8ff839e919c090737c3df114fbc7e3623270
tree3b7dec222d433f225d77a9855aefcdd40a4b773a
parent42fc9929ab591fe0aefdbaad529fe5087293c641
[M68k] Add `TRAP`, `TRAPV`, `BKPT`, `ILLEGAL` instructions

This makes it possible to use TRAP to make Linux system calls using
inline assembly for instance.

Differential Revision: https://reviews.llvm.org/D147102
llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
llvm/lib/Target/M68k/M68kInstrControl.td
llvm/test/MC/Disassembler/M68k/trap-break.txt [new file with mode: 0644]
llvm/test/MC/M68k/Control/trap-break.s [new file with mode: 0644]