[llvm] bb8d719 - [RISCV] Use decodeSImmNonZeroOperand for simm6nonzero and decodeUImmNonZeroOperand for uimmlog2xlennonzero.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 5 19:39:59 PST 2023
Author: Craig Topper
Date: 2023-02-05T19:33:31-08:00
New Revision: bb8d719c81c3a290357acd3243c7218994b35cb5
URL: https://github.com/llvm/llvm-project/commit/bb8d719c81c3a290357acd3243c7218994b35cb5
DIFF: https://github.com/llvm/llvm-project/commit/bb8d719c81c3a290357acd3243c7218994b35cb5.diff
LOG: [RISCV] Use decodeSImmNonZeroOperand for simm6nonzero and decodeUImmNonZeroOperand for uimmlog2xlennonzero.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoC.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoC.td b/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
index d9b82399b076..bcca73377a33 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
@@ -25,7 +25,7 @@ def uimmlog2xlennonzero : Operand<XLenVT>, ImmLeaf<XLenVT, [{
}]> {
let ParserMatchClass = UImmLog2XLenNonZeroAsmOperand;
// TODO: should ensure invalid shamt is rejected when decoding.
- let DecoderMethod = "decodeUImmOperand<6>";
+ let DecoderMethod = "decodeUImmNonZeroOperand<6>";
let OperandType = "OPERAND_UIMMLOG2XLEN_NONZERO";
let OperandNamespace = "RISCVOp";
let MCOperandPredicate = [{
@@ -56,7 +56,7 @@ def simm6nonzero : Operand<XLenVT>,
ImmLeaf<XLenVT, [{return (Imm != 0) && isInt<6>(Imm);}]> {
let ParserMatchClass = SImmAsmOperand<6, "NonZero">;
let EncoderMethod = "getImmOpValue";
- let DecoderMethod = "decodeSImmOperand<6>";
+ let DecoderMethod = "decodeSImmNonZeroOperand<6>";
let OperandType = "OPERAND_SIMM6_NONZERO";
let OperandNamespace = "RISCVOp";
let MCOperandPredicate = [{
More information about the llvm-commits
mailing list