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

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 16:49:30 PDT 2025


================
@@ -166,6 +166,13 @@ class LLVM_LIBRARY_VISIBILITY SparcV8TargetInfo : public SparcTargetInfo {
       PtrDiffType = SignedLong;
       break;
     }
+
+    // The SPARCv8 System V ABI has long double 128-bits in size, but 64-bit
+    // aligned.
+    LongDoubleWidth = 128;
+    LongDoubleAlign = 64;
----------------
efriedma-quic wrote:

You probably also need to fix the datalayout

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


More information about the llvm-commits mailing list