[llvm] [ADT] Add implementations for mulhs and mulhu to APInt (PR #84609)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 9 12:54:11 PST 2024
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 074fe3bac634ae9054e2d35be2e1bcf8a19bc256 0d3edd5d6d00968ec1a8e6b38917fd5551491e30 -- llvm/include/llvm/ADT/APInt.h llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/Support/APInt.cpp llvm/unittests/ADT/APIntTest.cpp llvm/unittests/Support/DivisionByConstantTest.cpp llvm/unittests/Support/KnownBitsTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Support/KnownBitsTest.cpp b/llvm/unittests/Support/KnownBitsTest.cpp
index b4ecfa9798..e44775c1de 100644
--- a/llvm/unittests/Support/KnownBitsTest.cpp
+++ b/llvm/unittests/Support/KnownBitsTest.cpp
@@ -537,14 +537,12 @@ TEST(KnownBitsTest, BinaryExhaustive) {
[](const KnownBits &Known1, const KnownBits &Known2) {
return KnownBits::mulhs(Known1, Known2);
},
- &APIntOps::mulhs,
- checkCorrectnessOnlyBinary);
+ &APIntOps::mulhs, checkCorrectnessOnlyBinary);
testBinaryOpExhaustive(
[](const KnownBits &Known1, const KnownBits &Known2) {
return KnownBits::mulhu(Known1, Known2);
},
- &APIntOps::mulhu,
- checkCorrectnessOnlyBinary);
+ &APIntOps::mulhu, checkCorrectnessOnlyBinary);
}
TEST(KnownBitsTest, UnaryExhaustive) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/84609
More information about the llvm-commits
mailing list