Skip to content

Commit d300908

Browse files
toppercasi-sc
authored andcommitted
[RISCV] Add OperandType to loadfpimm. (llvm#114150)
This is represented in the MachineInstr and MCInst as a 5-bit unsigned immediate so we use OPERAND_UIMM5. If someone needs to know for sure its an FLI constant in the future we can break it out to a new type. (This is a cherry-pick of c62130f)
1 parent 6fb7082 commit d300908

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZfa.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def LoadFPImmOperand : AsmOperandClass {
2626
def loadfpimm : Operand<XLenVT> {
2727
let ParserMatchClass = LoadFPImmOperand;
2828
let PrintMethod = "printFPImmOperand";
29+
let OperandType = "OPERAND_UIMM5";
30+
let OperandNamespace = "RISCVOp";
2931
}
3032

3133
def RTZArg : AsmOperandClass {

0 commit comments

Comments
 (0)