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,c --
compiler-rt/lib/builtins/arm/dnan2.c compiler-rt/lib/builtins/arm/dnorm2.c
compiler-rt/lib/builtins/arm/dunder.c compiler-rt/lib/builtins/arm/endian.h
--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/arm/dnan2.c
b/compiler-rt/lib/builtins/arm/dnan2.c
index 3b3bb50d3..9a119899e 100644
--- a/compiler-rt/lib/builtins/arm/dnan2.c
+++ b/compiler-rt/lib/builtins/arm/dnan2.c
@@ -40,6 +40,6 @@ uint64_t __compiler_rt_dnan2(uint64_t a, uint64_t b) {
return b | 0x0008000000000000; // if so, return it with the quiet bit set
if (aadj < 0x0010000000000000) // a is a quiet NaN?
return a; // if so, return it
- else /* expect (badj < 0x0010000000000000) */
+ else /* expect (badj < 0x0010000000000000) */
return b; // in that case b must be a quiet NaN
}
diff --git a/compiler-rt/lib/builtins/arm/endian.h
b/compiler-rt/lib/builtins/arm/endian.h
index f603fa9cc..11eadb210 100644
--- a/compiler-rt/lib/builtins/arm/endian.h
+++ b/compiler-rt/lib/builtins/arm/endian.h
@@ -22,16 +22,10 @@
#ifdef __BIG_ENDIAN__
// Big-endian: high words are in lower-numbered registers.
-xh .req r0
-xl .req r1
-yh .req r2
-yl .req r3
+xh.req r0 xl.req r1 yh.req r2 yl.req r3
#else
// Little-endian: low words are in lower-numbered registers.
-xl .req r0
-xh .req r1
-yl .req r2
-yh .req r3
+xl.req r0 xh.req r1 yl.req r2 yh.req r3
#endif
#endif // COMPILER_RT_ARM_FP_ENDIAN_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/179920
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits