ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

Zvzip

T1 riscv feature feature
Vector Extension for Reordering Structured Data
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon Scopev0.3.0 (development)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
ExtensionsZve32x
Note: Extension state: development

Summary

The Zvzip extension provides vector instructions for reordering structured data in vector registers: interleaving and deinterleaving element sequences, and pairwise transposition of elements from two vector register groups. These operations support packing and unpacking structured data and transposing small matrices.

Syntax / Encoding

Zvzip v0.3.0 (development)

Reference Notes

The `Zvzip` extension provides vector instructions for reordering structured
data in vector registers: interleaving and deinterleaving element sequences,
and pairwise transposition of elements from two vector register groups.
These operations support packing and unpacking structured data and
transposing small matrices.

NOTE: This extension is a draft. Its encodings are provisional, pending
codepoint allocation.

All operands of all `Zvzip` instructions have EEW=SEW. `vtype` and `vl`
describe the destination: `vl` gives the number of destination elements, and
the destination is a vector register group with EMUL=LMUL. The source
operands of `vzip.vv` have EMUL=LMUL/2, the source operand of `vunzipe.v`
and `vunzipo.v` has EMUL=2*LMUL, and the source operands of `vpaire.vv` and
`vpairo.vv` have EMUL=LMUL. The vector register alignment rules apply to
each operand according to its EMUL.

Masking, prestart, body, and tail element handling follow the base
specification, applied to the destination element indices. As in the base
specification, a masked instruction whose destination overlaps `v0` is
reserved. Unlike the base specification, unsupported SEW/LMUL settings and
vector register group overlap violations raise an illegal-instruction
exception.

If the `Zvkt` extension is implemented, all `Zvzip` instructions are
executed with data-independent execution latency.