Skip to content

Commit b3b2a92

Browse files
committed
[RISCV] Fix the predicate code of uimm6
Differential Revision: https://reviews.llvm.org/D156974
1 parent 89aeefc commit b3b2a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def InsnDirectiveOpcode : AsmOperandClass {
237237
let PredicateMethod = "isImm";
238238
}
239239

240-
def uimm6 : Operand<XLenVT>, ImmLeaf<XLenVT, [{return isInt<6>(Imm);}]> {
240+
def uimm6 : Operand<XLenVT>, ImmLeaf<XLenVT, [{return isUInt<6>(Imm);}]> {
241241
let ParserMatchClass = UImmAsmOperand<6>;
242242
let DecoderMethod = "decodeUImmOperand<6>";
243243
let OperandType = "OPERAND_UIMM6";

0 commit comments

Comments
 (0)