vunzipe.v
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZvzip, Zkt-DITSummary
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)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 010010xxxxxx01011010xxxxx1010111 | 0xfc0ff07f / 0x4805a057 |
Operands
| Name | Description |
|---|---|
vm | bits [25] |
vs2 | bits [24:20] |
vd | bits [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`).