[clang] [clang][PowerPC] Enable IEEE-128 long double on FreeBSD/powerpc64le (PR #201298)

Jessica Clarke via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 16:10:00 PDT 2026


================
@@ -234,7 +232,10 @@ llvm::Constant *CodeGenModule::getBuiltinLibFunction(const FunctionDecl *FD,
   else {
     // TODO: This mutation should also be applied to other targets other than
     // PPC, after backend supports IEEE 128-bit style libcalls.
-    if (getTriple().isPPC64() &&
+    // FreeBSD's powerpc64le has a single IEEE-128 long double format and uses
+    // the unsuffixed libm names, so skip the IEEE-128 libcall redirection
+    // there; other PPC64 IEEE-128 targets keep it.
----------------
jrtc27 wrote:

Oh I think I misunderstood your original message as meaning "implementing this special case for FreeBSD will help Clang be better on Linux", but instead you meant "following the Linux ABI on FreeBSD and fixing the issues will help Clang be better on Linux"? That makes more sense, and given RHEL is IBM's it would make sense to follow what it does IMO.

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


More information about the cfe-commits mailing list