[libc-commits] [compiler-rt] [libc] [compiler-rt][builtins] libc-backed floating-point extend/trunct builtins (PR #209984)
via libc-commits
libc-commits at lists.llvm.org
Wed Jul 15 23:48:50 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 h,cpp -- compiler-rt/lib/builtins/extenddftf2.cpp compiler-rt/lib/builtins/extendsfdf2.cpp compiler-rt/lib/builtins/extendsftf2.cpp compiler-rt/lib/builtins/extendxftf2.cpp compiler-rt/lib/builtins/truncdfsf2.cpp compiler-rt/lib/builtins/trunctfdf2.cpp compiler-rt/lib/builtins/trunctfsf2.cpp compiler-rt/lib/builtins/trunctfxf2.cpp libc/shared/builtins/extenddftf2.h libc/shared/builtins/extendsfdf2.h libc/shared/builtins/extendsftf2.h libc/shared/builtins/extendxftf2.h libc/shared/builtins/truncdfsf2.h libc/shared/builtins/trunctfdf2.h libc/shared/builtins/trunctfsf2.h libc/shared/builtins/trunctfxf2.h libc/src/__support/builtins/extenddftf2.h libc/src/__support/builtins/extendsfdf2.h libc/src/__support/builtins/extendsftf2.h libc/src/__support/builtins/extendxftf2.h libc/src/__support/builtins/fpconvert_helper.h libc/src/__support/builtins/truncdfsf2.h libc/src/__support/builtins/trunctfdf2.h libc/src/__support/builtins/trunctfsf2.h libc/src/__support/builtins/trunctfxf2.h libc/shared/builtins.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/compiler-rt/lib/builtins/extendsfdf2.cpp b/compiler-rt/lib/builtins/extendsfdf2.cpp
index e422d55c6..e7c48dbac 100644
--- a/compiler-rt/lib/builtins/extendsfdf2.cpp
+++ b/compiler-rt/lib/builtins/extendsfdf2.cpp
@@ -12,9 +12,9 @@
///
//===----------------------------------------------------------------------===//
+#include "shared/builtins/extendsfdf2.h"
#include "fp_libc_config.h"
#include "int_lib.h"
-#include "shared/builtins/extendsfdf2.h"
extern "C" COMPILER_RT_ABI double __extendsfdf2(float a) {
return LIBC_NAMESPACE::shared::extendsfdf2(a);
diff --git a/compiler-rt/lib/builtins/truncdfsf2.cpp b/compiler-rt/lib/builtins/truncdfsf2.cpp
index 9d2281cb1..775526dbf 100644
--- a/compiler-rt/lib/builtins/truncdfsf2.cpp
+++ b/compiler-rt/lib/builtins/truncdfsf2.cpp
@@ -12,9 +12,9 @@
///
//===----------------------------------------------------------------------===//
+#include "shared/builtins/truncdfsf2.h"
#include "fp_libc_config.h"
#include "int_lib.h"
-#include "shared/builtins/truncdfsf2.h"
extern "C" COMPILER_RT_ABI float __truncdfsf2(double a) {
return LIBC_NAMESPACE::shared::truncdfsf2(a);
``````````
</details>
https://github.com/llvm/llvm-project/pull/209984
More information about the libc-commits
mailing list