[clang] [llvm] [ARM64EC] Implement `-mlong-double-{64,80,128}` options (PR #237057)

LIU Hao via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 2 00:13:58 PST 2026


================
@@ -2381,11 +2392,104 @@ def AArch64SystemLibrary : SystemRuntimeLibrary<isAArch64_ExceptArm64EC,
   ["compiler-rt", "libatomic", "llvm-client-runtime", "libm", "libc", "unwind",
    "sme"]>;
 
+//===----------------------------------------------------------------------===//
+// ARM64EC helpers for the x87 `long double` format
+//===----------------------------------------------------------------------===//
+
+// These are not the exact x87 soft-float helpers of libgcc: The value stays
+// an 80-bit x87 image in a 16-byte slot, but every operation on it is carried
+// out in `double`. These are named with an `__arm64ec_` prefix so they will
+// not be confused with, or silently bound to, an exact implementation of the
+// same format.
----------------
lhmouse wrote:

I haven't review those changes so it'd take quite some time.
(I'm still working on fixing x86 soft float and generalizing it for reuse here.)


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


More information about the cfe-commits mailing list