[llvm-branch-commits] [llvm] ADT: Add utility functions for comparing FPClassTest (PR #175380)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jan 10 11:38:52 PST 2026
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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/ADT/FloatingPointMode.h llvm/lib/Support/FloatingPointMode.cpp llvm/unittests/ADT/FloatingPointMode.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/ADT/FloatingPointMode.cpp b/llvm/unittests/ADT/FloatingPointMode.cpp
index 870a080ca..cbdd64aeb 100644
--- a/llvm/unittests/ADT/FloatingPointMode.cpp
+++ b/llvm/unittests/ADT/FloatingPointMode.cpp
@@ -275,7 +275,6 @@ TEST(FloatingPointModeTest, cannotOrderStrictlyGreater) {
EXPECT_FALSE(cannotOrderStrictlyGreater(fcNegZero, fcSubnormal));
EXPECT_FALSE(cannotOrderStrictlyGreater(fcSubnormal, fcNegZero));
-
EXPECT_TRUE(cannotOrderStrictlyGreater(fcPosZero, fcPosSubnormal));
EXPECT_FALSE(cannotOrderStrictlyGreater(fcPosSubnormal, fcPosZero));
``````````
</details>
https://github.com/llvm/llvm-project/pull/175380
More information about the llvm-branch-commits
mailing list