[llvm] [RISCV][GISel] Add FP calling convention support (PR #69138)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 10:28:07 PDT 2023
================
@@ -94,11 +94,60 @@ struct RISCVOutgoingValueHandler : public CallLowering::OutgoingValueHandler {
void assignValueToReg(Register ValVReg, Register PhysReg,
CCValAssign VA) override {
+ // If we're passing an f32 value into an i64, anyextend before copying.
+ if (VA.getLocVT() == MVT::i64 && VA.getValVT() == MVT::f32)
----------------
topperc wrote:
I think so too, but it would require moving some code in SelectionDAG. Maybe I'll do it as a follow up.
https://github.com/llvm/llvm-project/pull/69138
More information about the llvm-commits
mailing list