[clang] [llvm] [RISCV] Update Zvzip support to v0.2 (PR #210603)

Boyao Wang via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 20 03:43:53 PDT 2026


================
@@ -6798,6 +6781,9 @@ SDValue RISCVTargetLowering::lowerVECTOR_SHUFFLE(SDValue Op,
       }
 
       if (UsesBothSources &&
+          isLegalVTForZvzipInterleavedOperand(
+              V1.getSimpleValueType().getDoubleNumVectorElementsVT(),
+              Subtarget) &&
----------------
BoyaoWang430 wrote:

This checks the doubled type, but the calls below lower the original V1/V2. Please validate the actual operand type; otherwise <4 x i32> on Zve32x produces an illegal result.

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


More information about the cfe-commits mailing list