[clang] [llvm] [RISCV][MC] Add support of Zvzip extension (PR #185614)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 10 19:40:50 PDT 2026
================
@@ -0,0 +1,28 @@
+//===---- RISCVInstrInfoZvzip.td - 'Zvzip' instructions ----*- tablegen -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file describes the RISC-V instructions from the Zvzip standard extension
+// for reordering structured data in vector registers.
+//
+//===----------------------------------------------------------------------===//
+
+//===----------------------------------------------------------------------===//
+// Instructions
+//===----------------------------------------------------------------------===//
+
+let Predicates = [HasStdExtZvzip], Constraints = "@earlyclobber $vd" in {
+ let VS1VS2Constraint = WidenV in {
+ def VZIP_VV : VALUVV<0b111110, OPMVV, "vzip.vv">;
+ def VUNZIPE_V : VALUVs2<0b010010, 0b01011, OPMVV, "vunzipe.v">;
----------------
wangpc-pp wrote:
According to the spec, `vzip.vv` also has a widen dst. How do we handle such case?
https://github.com/llvm/llvm-project/pull/185614
More information about the llvm-commits
mailing list