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 -- 
clang/lib/Headers/riscv_packed_simd.h clang/test/CodeGen/RISCV/rvp-intrinsics.c 
cross-project-tests/intrinsic-header-tests/riscv_packed_simd.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/clang/lib/Headers/riscv_packed_simd.h 
b/clang/lib/Headers/riscv_packed_simd.h
index a02150066..92320df12 100644
--- a/clang/lib/Headers/riscv_packed_simd.h
+++ b/clang/lib/Headers/riscv_packed_simd.h
@@ -343,8 +343,8 @@ typedef uint32_t uint32x2_t 
__attribute__((__vector_size__(8)));
 
 #define __packed_join4(name, ty, elt_ty)                                       
\
   static __inline__ ty __DEFAULT_FN_ATTRS __riscv_##name(                      
\
-      elt_ty __e0, elt_ty __e1, elt_ty __e2, elt_ty __e3) {                   \
-    return (ty){__e0, __e1, __e2, __e3};                                      \
+      elt_ty __e0, elt_ty __e1, elt_ty __e2, elt_ty __e3) {                    
\
+    return (ty){__e0, __e1, __e2, __e3};                                       
\
   }
 
 // clang-format off: macro call sites have no trailing semicolons, which
diff --git a/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c 
b/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
index 1c14685f9..0cb773dd2 100644
--- a/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+++ b/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
@@ -4628,8 +4628,7 @@ uint16x2_t test_pjoin2_u16x2(uint16_t e0, uint16_t e1) {
 // RV32-COUNT-2: pack
 // RV64-COUNT-2: ppaire.h
 // RV64:         pack
-int16x4_t test_pjoin4_i16x4(int16_t e0, int16_t e1, int16_t e2,
-                            int16_t e3) {
+int16x4_t test_pjoin4_i16x4(int16_t e0, int16_t e1, int16_t e2, int16_t e3) {
   return __riscv_pjoin4_i16x4(e0, e1, e2, e3);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/223931
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to