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

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 6 23:15:35 PDT 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>>,
----------------
koachan wrote:

Also, am I doing this right @efriedma-quic? The argument to CCPassIndirect is the type of the pointer right?

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


More information about the cfe-commits mailing list