[llvm] [PowerPC] Implement __atomic_fetch_min/max for i128 (PR #69573)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 02:08:58 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff ba47bc7fd41278926552becca758d42cf4f793c1 11484b4a008b11b5a03c6b730ccf48b11aa0d8cc -- llvm/lib/Target/PowerPC/PPCExpandAtomicPseudoInsts.cpp llvm/lib/Target/PowerPC/PPCISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCExpandAtomicPseudoInsts.cpp b/llvm/lib/Target/PowerPC/PPCExpandAtomicPseudoInsts.cpp
index c8554ce2eb55..022aa0391293 100644
--- a/llvm/lib/Target/PowerPC/PPCExpandAtomicPseudoInsts.cpp
+++ b/llvm/lib/Target/PowerPC/PPCExpandAtomicPseudoInsts.cpp
@@ -395,9 +395,7 @@ bool PPCExpandAtomicPseudo::expandAtomicRMWMinMax128(
}
BuildMI(CurrentMBB, DL, LL, Old).addReg(RA).addReg(RB);
- BuildMI(CurrentMBB, DL, TII->get(CmpOp), PPC::CR0)
- .addReg(OldHi)
- .addReg(OpHi);
+ BuildMI(CurrentMBB, DL, TII->get(CmpOp), PPC::CR0).addReg(OldHi).addReg(OpHi);
BuildMI(CurrentMBB, DL, TII->get(PPC::BCC))
.addImm(CmpSuccPred)
.addReg(PPC::CR0)
``````````
</details>
https://github.com/llvm/llvm-project/pull/69573
More information about the llvm-commits
mailing list