[libcxx-commits] [clang] [libcxx] [PowerPC] Emit libcall to frexpl for calls to frexp(ppcDoublDouble) (PR #75226)
Lei Huang via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 13 10:27:00 PST 2023
================
@@ -149,6 +153,11 @@ llvm::Constant *CodeGenModule::getBuiltinLibFunction(const FunctionDecl *FD,
&getTarget().getLongDoubleFormat() == &llvm::APFloat::IEEEquad() &&
F128Builtins.contains(BuiltinID))
Name = F128Builtins[BuiltinID];
+ else if (getTriple().isPPC() && getTriple().isOSLinux() &&
+ &getTarget().getLongDoubleFormat() ==
+ &llvm::APFloat::PPCDoubleDouble() &&
+ PPCDoubleDoubleBuiltins.contains(BuiltinID))
+ Name = PPCDoubleDoubleBuiltins[BuiltinID];
----------------
lei137 wrote:
I didn't realize that. Thanks for pointing it out.
https://github.com/llvm/llvm-project/pull/75226
More information about the libcxx-commits
mailing list