[llvm] [RISCV][CodeGen] Add CodeGen support of Zvzip extension (PR #189801)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 00:28:51 PDT 2026


================
@@ -29,3 +29,121 @@ let Predicates = [HasStdExtZvzip], Constraints = "@earlyclobber $vd" in {
     def VPAIRO_VV : VALUVV<0b001111, OPMVV, "vpairo.vv">;
   }
 } // Predicates = [HasStdExtZvzip]
+
+// Returns a vector. Operand 0 and 1 are vectors, operand 2 is a passthru,
+// operand 3 is a mask, operand 4 is VL.
+def SDT_RISCVZip_VL : SDTypeProfile<1, 5, [SDTCisVec<0>, SDTCisVec<1>,
+                                           SDTCisInt<0>, SDTCisInt<1>,
+                                           SDTCisSubVecOfVec<1, 0>,
+                                           SDTCisSameAs<1, 2>,
+                                           SDTCisSameAs<0, 3>,
+                                           SDTCVecEltisVT<4, i1>,
+                                           SDTCisSameNumEltsAs<1, 4>,
+                                           SDTCisVT<5, XLenVT>]>;
+
+// Returns a vector. Operand 0 is a vector, operand 1 is a passthru,
----------------
wangpc-pp wrote:

ditto

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


More information about the llvm-commits mailing list