[llvm] [LLVM][APFloat] Add APFloat support for 8-bit UE5M3 type (PR #210720)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 20 07:48:49 PDT 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 cpp,h -- llvm/include/llvm/ADT/APFloat.h llvm/lib/Support/APFloat.cpp llvm/unittests/ADT/APFloatTest.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/APFloatTest.cpp b/llvm/unittests/ADT/APFloatTest.cpp
index 5fb3389ea..8b80b46e3 100644
--- a/llvm/unittests/ADT/APFloatTest.cpp
+++ b/llvm/unittests/ADT/APFloatTest.cpp
@@ -10117,7 +10117,8 @@ TEST(APFloatTest, Float8E5M3FNUExhaustivePair) {
TEST(APFloatTest, Float8E5M3FNUExhaustive) {
// Test each of the 256 Float8E5M3FNU values.
- // Layout: 5 exponent bits + 3 mantissa bits, bias = 15, NaN = 0xFF (all-ones).
+ // Layout: 5 exponent bits + 3 mantissa bits, bias = 15, NaN = 0xFF
+ // (all-ones).
for (int i = 0; i < 256; i++) {
APFloat test(APFloat::Float8E5M3FNU(), APInt(8, i));
SCOPED_TRACE("i=" + std::to_string(i));
``````````
</details>
https://github.com/llvm/llvm-project/pull/210720
More information about the llvm-commits
mailing list