Skip to content

Commit bb8d719

Browse files
committed
[RISCV] Use decodeSImmNonZeroOperand for simm6nonzero and decodeUImmNonZeroOperand for uimmlog2xlennonzero.
1 parent f08d86f commit bb8d719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoC.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def uimmlog2xlennonzero : Operand<XLenVT>, ImmLeaf<XLenVT, [{
2525
}]> {
2626
let ParserMatchClass = UImmLog2XLenNonZeroAsmOperand;
2727
// TODO: should ensure invalid shamt is rejected when decoding.
28-
let DecoderMethod = "decodeUImmOperand<6>";
28+
let DecoderMethod = "decodeUImmNonZeroOperand<6>";
2929
let OperandType = "OPERAND_UIMMLOG2XLEN_NONZERO";
3030
let OperandNamespace = "RISCVOp";
3131
let MCOperandPredicate = [{
@@ -56,7 +56,7 @@ def simm6nonzero : Operand<XLenVT>,
5656
ImmLeaf<XLenVT, [{return (Imm != 0) && isInt<6>(Imm);}]> {
5757
let ParserMatchClass = SImmAsmOperand<6, "NonZero">;
5858
let EncoderMethod = "getImmOpValue";
59-
let DecoderMethod = "decodeSImmOperand<6>";
59+
let DecoderMethod = "decodeSImmNonZeroOperand<6>";
6060
let OperandType = "OPERAND_SIMM6_NONZERO";
6161
let OperandNamespace = "RISCVOp";
6262
let MCOperandPredicate = [{

0 commit comments

Comments
 (0)