[llvm] [CodeGen][Mips] Remove fp128 libcall list (PR #153798)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 06:32:40 PDT 2025


================
@@ -11031,6 +11031,12 @@ TargetLowering::LowerCallTo(TargetLowering::CallLoweringInfo &CLI) const {
   for (Type *Ty : RetOrigTys)
     RetTys.push_back(getValueType(DL, Ty));
 
+  if (CLI.RetTy != CLI.OrigRetTy) {
+    assert(RetOrigTys.size() == 1 &&
+           "Only supported for non-aggregate returns");
+    RetOrigTys[0] = CLI.OrigRetTy;
+  }
----------------
nikic wrote:

The problem here is basically that we want OrigTy = float, but ArgVT = i32. That is, the getValueType() call above needs to work on i32, not float. Otherwise this is not going to line up with the expended SDValue types.

https://github.com/llvm/llvm-project/pull/153798


More information about the llvm-commits mailing list