Skip to content

Commit a341f53

Browse files
tclin914rorth
authored andcommitted
[RISCV] Add missing immediate operand type for verifyInstruction. NFC. (llvm#143056)
Those immediate operand type are used by Insn{16,32,48,64}.
1 parent eab3a4a commit a341f53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,7 +2694,11 @@ bool RISCVInstrInfo::verifyInstruction(const MachineInstr &MI,
26942694
CASE_OPERAND_UIMM(8)
26952695
CASE_OPERAND_UIMM(10)
26962696
CASE_OPERAND_UIMM(12)
2697+
CASE_OPERAND_UIMM(16)
26972698
CASE_OPERAND_UIMM(20)
2699+
CASE_OPERAND_UIMM(32)
2700+
CASE_OPERAND_UIMM(48)
2701+
CASE_OPERAND_UIMM(64)
26982702
// clang-format on
26992703
case RISCVOp::OPERAND_UIMM2_LSB0:
27002704
Ok = isShiftedUInt<1, 1>(Imm);

0 commit comments

Comments
 (0)