Skip to content

Commit d6b3260

Browse files
committed
Add isTrap to C_UNIMP
1 parent 7dba3c0 commit d6b3260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoC.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def C_SDSP : CStackStore<0b111, "c.sdsp", GPR, uimm9_lsb000>,
596596

597597
// The all zeros pattern isn't a valid RISC-V instruction. It's used by GNU
598598
// binutils as 16-bit instruction known to be unimplemented (i.e., trapping).
599-
let hasSideEffects = 1, mayLoad = 0, mayStore = 0 in
599+
let hasSideEffects = 1, mayLoad = 0, mayStore = 0, isTrap = 1 in
600600
def C_UNIMP : RVInst16<(outs), (ins), "c.unimp", "", [], InstFormatOther>,
601601
Sched<[]> {
602602
let Inst{15-0} = 0;

0 commit comments

Comments
 (0)