[llvm] 618b874 - [RISCV] Add OperandType to tsimm5 used by Xsfvcp. (#171964)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 11 22:02:12 PST 2025
Author: Craig Topper
Date: 2025-12-11T22:02:08-08:00
New Revision: 618b874d8495ca92be1e3e38175fc1f9bd4c47b2
URL: https://github.com/llvm/llvm-project/commit/618b874d8495ca92be1e3e38175fc1f9bd4c47b2
DIFF: https://github.com/llvm/llvm-project/commit/618b874d8495ca92be1e3e38175fc1f9bd4c47b2.diff
LOG: [RISCV] Add OperandType to tsimm5 used by Xsfvcp. (#171964)
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td b/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
index c07ed8596f009..bbc26a15e91a8 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
@@ -37,7 +37,7 @@ def payload1 : PayloadOp<1>;
def payload2 : PayloadOp<2>;
def payload5 : PayloadOp<5>;
-def tsimm5 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isInt<5>(Imm);}]> {
+def tsimm5 : RISCVOp, TImmLeaf<XLenVT, [{return isInt<5>(Imm);}]> {
let ParserMatchClass = SImmAsmOperand<5>;
let EncoderMethod = "getImmOpValue";
let DecoderMethod = "decodeSImmOperand<5>";
@@ -47,6 +47,7 @@ def tsimm5 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isInt<5>(Imm);}]> {
return isInt<5>(Imm);
return MCOp.isBareSymbolRef();
}];
+ let OperandType = "OPERAND_SIMM5";
}
class SwapVCIXIns<dag funct6, dag rd, dag rs2, dag rs1, bit swap> {
More information about the llvm-commits
mailing list