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

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 00:45:36 PST 2025


================
@@ -241,3 +241,33 @@ entry:
   store fp128 %1, ptr %scalar.result, align 8
   ret void
 }
+
+define fp128 @f128_direct(fp128 %num) nounwind {
----------------
koachan wrote:

I think this testcase already handles it?
The return pointer should be placed in %sp+64 by the caller (which becomes %fp+64 in the callee), and the callee will read from it before storing the actual values.

On the other hand argument pointers are passed in registers just like regular pointers.

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


More information about the llvm-commits mailing list