Skip to content

Commit 2252cd5

Browse files
author
git apple-llvm automerger
committed
Merge commit '21630efb5a8f' from llvm.org/main into next
2 parents e3a6e56 + 21630ef commit 2252cd5

File tree

3 files changed

+879
-231
lines changed

3 files changed

+879
-231
lines changed

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void TargetLoweringBase::InitLibcalls(const Triple &TT) {
123123
setLibcallCallingConv((RTLIB::Libcall)LC, CallingConv::C);
124124

125125
// Use the f128 variants of math functions on x86_64
126-
if (TT.getArch() == Triple::ArchType::x86_64) {
126+
if (TT.getArch() == Triple::ArchType::x86_64 && TT.isGNUEnvironment()) {
127127
setLibcallName(RTLIB::REM_F128, "fmodf128");
128128
setLibcallName(RTLIB::FMA_F128, "fmaf128");
129129
setLibcallName(RTLIB::SQRT_F128, "sqrtf128");

0 commit comments

Comments
 (0)