Andrew Pinski [Friday, 5 September 2025, 22:57:02 CEST]: > > It seems that Clang and GCC disagree on mangling 80-Bit long double: > > > > https://compiler-explorer.com/z/W1d64PjrP > > > > I like Clang's interpretation of > > https://itanium-cxx-abi.github.io/cxx-abi/ > > abi.html#mangle.float better. > > "corresponding to the internal representation" But interpretations > seems valid since there is no mention of the padding bits. > I think GCC is better because it includes the full padding bits.
I interpret "internal representation" to say that not the decimal value is printed but rather the bits in memory that make up the floating-point value. And padding bits don't contribute to that value. I wrote "like" above. I have no idea about the wording intent. But using the shorter mangling, and a mangling that is the same on 32- and 64-bit seems preferable. Which is why I "like" it more. -- ────────────────────────────────────────────────────────────────────────── Dr. Matthias Kretz https://mattkretz.github.io GSI Helmholtz Center for Heavy Ion Research https://gsi.de std::simd ──────────────────────────────────────────────────────────────────────────
