[clang] [llvm] [RISCV][P-ext] Support Packed Narrowing Zip (PR #210040)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 16 19:54:38 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 c,h,cpp -- clang/lib/Headers/riscv_packed_simd.h clang/test/CodeGen/RISCV/rvp-intrinsics.c cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c llvm/lib/Target/RISCV/RISCVISelLowering.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/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 1261c9cbf..7b37bde2a 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -6604,10 +6604,10 @@ SDValue RISCVTargetLowering::lowerVECTOR_SHUFFLE(SDValue Op,
       return V;
     if (SDValue V =
             lowerVECTOR_SHUFFLEAsRV32PNarrowingShift(SVN, Subtarget, DAG))
-    if (SDValue V =
-            lowerVECTOR_SHUFFLEAsPNarrowingZip(SVN, DAG, Subtarget.is64Bit()))
-    if (SDValue V = lowerVECTOR_SHUFFLEAsPNarrowingZip(SVN, DAG))
-      return V;
+      if (SDValue V =
+              lowerVECTOR_SHUFFLEAsPNarrowingZip(SVN, DAG, Subtarget.is64Bit()))
+        if (SDValue V = lowerVECTOR_SHUFFLEAsPNarrowingZip(SVN, DAG))
+          return V;
     if (SDValue V = lowerVECTOR_SHUFFLEAsPZip(SVN, DAG))
       return V;
     return SDValue();

``````````

</details>


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


More information about the cfe-commits mailing list