[libc-commits] [compiler-rt] [libc] [compiler-rt][builtins] libc-backed float16 extend/truncate builtins (PR #211882)

via libc-commits libc-commits at lists.llvm.org
Sat Aug 1 12:44:26 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 -- compiler-rt/lib/builtins/extendhfdf2.cpp compiler-rt/lib/builtins/extendhfsf2.cpp compiler-rt/lib/builtins/extendhftf2.cpp compiler-rt/lib/builtins/truncdfhf2.cpp compiler-rt/lib/builtins/truncsfhf2.cpp compiler-rt/lib/builtins/trunctfhf2.cpp libc/shared/builtins/extendhfdf2.h libc/shared/builtins/extendhfsf2.h libc/shared/builtins/extendhftf2.h libc/shared/builtins/truncdfhf2.h libc/shared/builtins/truncsfhf2.h libc/shared/builtins/trunctfhf2.h libc/src/__support/builtins/extendhfdf2.h libc/src/__support/builtins/extendhfsf2.h libc/src/__support/builtins/extendhftf2.h libc/src/__support/builtins/truncdfhf2.h libc/src/__support/builtins/truncsfhf2.h libc/src/__support/builtins/trunctfhf2.h libc/shared/builtins.h libc/src/__support/builtins/fpconvert_helper.h libc/test/shared/shared_builtins_test.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/libc/test/shared/shared_builtins_test.cpp b/libc/test/shared/shared_builtins_test.cpp
index 118e6ca4e..5a2c188b8 100644
--- a/libc/test/shared/shared_builtins_test.cpp
+++ b/libc/test/shared/shared_builtins_test.cpp
@@ -18,11 +18,11 @@ TEST(LlvmLibcSharedBuiltinsTest, SinglePrecisionArithmtic) {
   EXPECT_FP_EQ(6.0f, shared::mulsf3(2.0f, 3.0f));
   EXPECT_FP_EQ(-5.0, shared::negsf2(5.0));
   EXPECT_FP_EQ(2.0f, shared::subsf3(5.0f, 3.0f));
-namespace shared = LIBC_NAMESPACE::shared;
+  namespace shared = LIBC_NAMESPACE::shared;
 
-TEST(LlvmLibcSharedBuiltinsTest, AllFloat) {
-  // TODO: assertions for shared::*sf3 builtins.
-}
+  TEST(LlvmLibcSharedBuiltinsTest, AllFloat) {
+    // TODO: assertions for shared::*sf3 builtins.
+  }
 
 TEST(LlvmLibcSharedBuiltinsTest, DoublePrecisionArithmtic) {
   EXPECT_FP_EQ(3.0, shared::adddf3(1.0, 2.0));

``````````

</details>


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


More information about the libc-commits mailing list