[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 9 23:53:02 PST 2025


================
@@ -24,8 +24,8 @@ def CC_Sparc32 : CallingConv<[
   // As are v2i32 arguments (this would be the default behavior for
   // v2i32 if it wasn't allocated to the IntPair register-class)
   CCIfType<[v2i32], CCCustom<"CC_Sparc_Assign_Split_64">>,
-
-
+  // f128 arguments are passed indirectly.
+  CCIfType<[f128], CCPassIndirect<i32>>,
----------------
s-barannikov wrote:

I guess it would compile it in any case, but considering that SelectionDAG can synthesize libcalls with fp128 types it looks like we have to duplicate clang's lowering here.


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


More information about the llvm-commits mailing list