[clang] [compiler-rt] [libcxx] Implement soft x87 `long double` for ARM64EC (PR #236406)
LIU Hao via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 28 06:14:26 PDT 2026
lhmouse wrote:
> Why not just change MinGW x86-64 long double to f64?
>
> 1. mingw-w64 indeed has supported -mlong-double-64 some time now.
> 2. This is compatible with MSVC ABI.
> 3. This addressed arm64ec interoperability problems.
> 4. This won't introduce many changes for compilers, both gcc and clang.
> 5. This also improves performance and makes the abandonment of x87 possible.
>
> Given that long double isn't widely used in the wild, I think this is a better option than working hard to implement f80 emulation in clang.
The whole point of ARM64EC is to be interoperable with existing x86-64 code. So if it exists, it should be compatible, and what is default for x86-64 should also be compatible with ARM64EC.
Specifically, `alignof(max_align_t)` should stay the same value.
https://github.com/llvm/llvm-project/pull/236406
More information about the cfe-commits
mailing list