Skip to content

Commit 1e2013b

Browse files
committed
Unified the switch case handling for unsigned immediate.
1 parent 49e4656 commit 1e2013b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2766,6 +2766,7 @@ bool RISCVInstrInfo::verifyInstruction(const MachineInstr &MI,
27662766
CASE_OPERAND_UIMM(6)
27672767
CASE_OPERAND_UIMM(7)
27682768
CASE_OPERAND_UIMM(8)
2769+
CASE_OPERAND_UIMM(9)
27692770
CASE_OPERAND_UIMM(10)
27702771
CASE_OPERAND_UIMM(12)
27712772
CASE_OPERAND_UIMM(16)
@@ -2807,9 +2808,6 @@ bool RISCVInstrInfo::verifyInstruction(const MachineInstr &MI,
28072808
case RISCVOp::OPERAND_UIMM9_LSB000:
28082809
Ok = isShiftedUInt<6, 3>(Imm);
28092810
break;
2810-
case RISCVOp::OPERAND_UIMM9:
2811-
Ok = isUInt<9>(Imm);
2812-
break;
28132811
case RISCVOp::OPERAND_SIMM10_LSB0000_NONZERO:
28142812
Ok = isShiftedInt<6, 4>(Imm) && (Imm != 0);
28152813
break;

0 commit comments

Comments
 (0)