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 c --
compiler-rt/test/builtins/Unit/addsf3_test.c
compiler-rt/test/builtins/Unit/subsf3_test.c --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/test/builtins/Unit/addsf3_test.c
b/compiler-rt/test/builtins/Unit/addsf3_test.c
index a08ba8b91..5d2097004 100644
--- a/compiler-rt/test/builtins/Unit/addsf3_test.c
+++ b/compiler-rt/test/builtins/Unit/addsf3_test.c
@@ -24,7 +24,8 @@
// Returns: a + b
COMPILER_RT_ABI float __addsf3(float a, float b);
-int test__addsf3(int line, uint32_t a_rep, uint32_t b_rep, uint32_t
expected_rep) {
+int test__addsf3(int line, uint32_t a_rep, uint32_t b_rep,
+ uint32_t expected_rep) {
float a = fromRep32(a_rep), b = fromRep32(b_rep);
float x = __addsf3(a, b);
#ifdef EXPECT_EXACT_RESULTS
@@ -34,14 +35,14 @@ int test__addsf3(int line, uint32_t a_rep, uint32_t b_rep,
uint32_t expected_rep
#endif
if (ret) {
- printf("error at line %d: __addsf3(%08" PRIx32 ", %08" PRIx32 ") = %08"
PRIx32
- ", expected %08" PRIx32 "\n",
+ printf("error at line %d: __addsf3(%08" PRIx32 ", %08" PRIx32
+ ") = %08" PRIx32 ", expected %08" PRIx32 "\n",
line, a_rep, b_rep, toRep32(x), expected_rep);
}
return ret;
}
-#define test__addsf3(a,b,x) (test__addsf3)(__LINE__,a,b,x)
+#define test__addsf3(a, b, x) (test__addsf3)(__LINE__, a, b, x)
int main() {
int status = 0;
diff --git a/compiler-rt/test/builtins/Unit/subsf3_test.c
b/compiler-rt/test/builtins/Unit/subsf3_test.c
index b9c1b2ac4..11a87d152 100644
--- a/compiler-rt/test/builtins/Unit/subsf3_test.c
+++ b/compiler-rt/test/builtins/Unit/subsf3_test.c
@@ -24,7 +24,8 @@
// Returns: a - b
COMPILER_RT_ABI float __subsf3(float a, float b);
-int test__subsf3(int line, uint32_t a_rep, uint32_t b_rep, uint32_t
expected_rep) {
+int test__subsf3(int line, uint32_t a_rep, uint32_t b_rep,
+ uint32_t expected_rep) {
float a = fromRep32(a_rep), b = fromRep32(b_rep);
float x = __subsf3(a, b);
#ifdef EXPECT_EXACT_RESULTS
@@ -34,14 +35,14 @@ int test__subsf3(int line, uint32_t a_rep, uint32_t b_rep,
uint32_t expected_rep
#endif
if (ret) {
- printf("error at line %d: __subsf3(%08" PRIx32 ", %08" PRIx32 ") = %08"
PRIx32
- ", expected %08" PRIx32 "\n",
+ printf("error at line %d: __subsf3(%08" PRIx32 ", %08" PRIx32
+ ") = %08" PRIx32 ", expected %08" PRIx32 "\n",
line, a_rep, b_rep, toRep32(x), expected_rep);
}
return ret;
}
-#define test__subsf3(a,b,x) test__subsf3(__LINE__,a,b,x)
+#define test__subsf3(a, b, x) test__subsf3(__LINE__, a, b, x)
int main() {
int status = 0;
``````````
</details>
https://github.com/llvm/llvm-project/pull/179929
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits