[PATCH] D140460: [RISCV][MC] Add support for experimental zfa extension
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 21:31:24 PST 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1633
+ APFloat SpecialVal = APFloat::getInf(APFloat::IEEEsingle());
+ Operands.push_back(RISCVOperand::createFPImm(
+ SpecialVal.bitcastToAPInt().getZExtValue(), S, isRV64()));
----------------
Rather than converting to FPImm here. I think maybe should store the 5-bit immediate in the Operands array. This would require validating the floating point values and converting to integers in this function instead of in addFPImmOperands.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140460/new/
https://reviews.llvm.org/D140460
More information about the llvm-commits
mailing list