[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
Sat Nov 8 23:58:42 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'm not sure this is necessary.
clang should've already lowered it to pass indirectly, and LLVM ABI doesn't have to match C/C++ ABI.
https://github.com/llvm/llvm-project/pull/162226
More information about the llvm-commits
mailing list