[PATCH] D84962: [PowerPC] Correct cpsgn's behaviour on PowerPC to match that of the ABI
Albion Fung via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 30 11:28:28 PDT 2020
Conanap created this revision.
Conanap added reviewers: PowerPC, saghir, nemanjai, hfinkel.
Conanap added projects: LLVM, clang, PowerPC.
Herald added subscribers: cfe-commits, shchenz.
Conanap requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D84962
Files:
clang/lib/CodeGen/CGBuiltin.cpp
Index: clang/lib/CodeGen/CGBuiltin.cpp
===================================================================
--- clang/lib/CodeGen/CGBuiltin.cpp
+++ clang/lib/CodeGen/CGBuiltin.cpp
@@ -14295,7 +14295,7 @@
Value *Y = EmitScalarExpr(E->getArg(1));
ID = Intrinsic::copysign;
llvm::Function *F = CGM.getIntrinsic(ID, ResultType);
- return Builder.CreateCall(F, {X, Y});
+ return Builder.CreateCall(F, {Y, X});
}
// Rounding/truncation
case PPC::BI__builtin_vsx_xvrspip:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84962.281994.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200730/b75326cc/attachment.bin>
More information about the cfe-commits
mailing list