[flang-commits] [flang] [flang][runtime] Fix RU/RD results when rounding to least nonzero (PR #75878)

via flang-commits flang-commits at lists.llvm.org
Tue Dec 26 15:54:44 PST 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 1346037fffae8f173c6915689349abff0118f952 782c255823f4883bcb30904f4435de640dd9cbf1 -- flang/lib/Decimal/decimal-to-binary.cpp flang/unittests/Runtime/NumericalFormatTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/unittests/Runtime/NumericalFormatTest.cpp b/flang/unittests/Runtime/NumericalFormatTest.cpp
index 0f261a9f64..9dd2771fe4 100644
--- a/flang/unittests/Runtime/NumericalFormatTest.cpp
+++ b/flang/unittests/Runtime/NumericalFormatTest.cpp
@@ -915,7 +915,7 @@ TEST(IOApiTests, EditDoubleInputValues) {
       {"(RD,F7.0)", "-1.e999", 0xfff0000000000000, ovf}, // -Inf
       {"(RU,F7.0)", "-1.e999", 0xffefffffffffffff, 0}, // -HUGE()
       {"(E9.1)", " 1.0E-325", 0x0, 0},
-      {"(RU,E9.1)", " 1.0E-325", 0x1,0 },
+      {"(RU,E9.1)", " 1.0E-325", 0x1, 0},
       {"(E9.1)", "-1.0E-325", 0x0, 0},
       {"(RD,E9.1)", "-1.0E-325", 0x8000000000000001, 0},
   };

``````````

</details>


https://github.com/llvm/llvm-project/pull/75878


More information about the flang-commits mailing list