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

vunzipe.v

T1 riscv simd insn
Vector unzip even
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zvzip, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZvzip, Zkt-DIT

Summary

Extracts the even-indexed elements of source vector register group vs2, with EMUL=2*LMUL, into destination vd, with EMUL=LMUL. For destination element index i, vd[i] = vs2[2*i]. The source is read at indices below 2*vl; as for vslidedown and vrgather, source reads are not bounded by vl, so the source must hold 2*vl valid elements.

Syntax / Encoding

vunzipe.v vd, vs2, vm | 010010xxxxxx01011010xxxxx1010111 (mask=0xfc0ff07f match=0x4805a057)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV010010xxxxxx01011010xxxxx10101110xfc0ff07f / 0x4805a057

Operands

NameDescription
vmbits [25]
vs2bits [24:20]
vdbits [11:7]

Reference Notes

Extracts the even-indexed elements of source vector register group `vs2`,
with EMUL=2*LMUL, into destination `vd`, with EMUL=LMUL. For destination
element index `i`, `vd[i] = vs2[2*i]`. The source is read at indices below
`2*vl`; as for `vslidedown` and `vrgather`, source reads are not bounded by
`vl`, so the source must hold `2*vl` valid elements.

Masking, prestart, body, and tail element handling follow the base
specification, applied to the destination element indices.

An illegal-instruction exception is raised when LMUL=8.

The destination vector register group may overlap the source vector register
group only if `vd` equals `vs2`, as for narrowing instructions. Any other
overlapping encoding raises an illegal-instruction exception. Note that
`vunzipe.v vd, vd` overwrites the low half of the source register group, so
when both halves are needed, extract the odd elements first (e.g.
`vunzipo.v v6, v4` before `vunzipe.v v4, v4`).