[llvm] [RISCV][MC] Recognise that fcvt.d.s with frm != 0b000 is valid (PR #67555)
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 30 11:36:42 PDT 2023
================
@@ -158,6 +158,16 @@ void RISCVInstPrinter::printFRMArg(const MCInst *MI, unsigned OpNo,
O << ", " << RISCVFPRndMode::roundingModeToString(FRMArg);
}
+void RISCVInstPrinter::printFRMArgLegacy(const MCInst *MI, unsigned OpNo,
+ const MCSubtargetInfo &STI,
+ raw_ostream &O) {
+ auto FRMArg =
+ static_cast<RISCVFPRndMode::RoundingMode>(MI->getOperand(OpNo).getImm());
+ if (PrintAliases && !NoAliases && FRMArg == RISCVFPRndMode::RoundingMode::RNE)
----------------
asb wrote:
Good idea, I've made that change. I don't imagine no aliases is commonly used outside of our own backend tests, but no harm in being cautious here.
https://github.com/llvm/llvm-project/pull/67555
More information about the llvm-commits
mailing list