vzip.vv
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZvzip, Zkt-DITSummary
Interleaves the elements of source vector register groups vs2 and vs1, each with EMUL=LMUL/2, into destination vd with EMUL=LMUL. For destination element index i, even indices read vs2[i/2] and odd indices read vs1[i/2], producing vd = [vs2[0], vs1[0], vs2[1], vs1[1], ...]. When vl is odd, vs2 supplies one more element than vs1.
Syntax / Encoding
vzip.vv vd, vs2, vs1, vm | 111110xxxxxxxxxxx010xxxxx1010111 (mask=0xfc00707f match=0xf8002057)
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 111110xxxxxxxxxxx010xxxxx1010111 | 0xfc00707f / 0xf8002057 |
Operands
| Name | Description |
|---|---|
vm | bits [25] |
vs2 | bits [24:20] |
vs1 | bits [19:15] |
vd | bits [11:7] |
Reference Notes
Interleaves the elements of source vector register groups `vs2` and `vs1`, each with EMUL=LMUL/2, into destination `vd` with EMUL=LMUL. For destination element index `i`, even indices read `vs2[i/2]` and odd indices read `vs1[i/2]`, producing `vd = [vs2[0], vs1[0], vs2[1], vs1[1], ...]`. When `vl` is odd, `vs2` supplies one more element than `vs1`. Masking, prestart, body, and tail element handling follow the base specification, applied to the destination element indices. An illegal-instruction exception is raised when `2*SEW > LMUL*ELEN`, i.e. when SEW is too large for a source operand with EMUL=LMUL/2. A source vector register group may overlap the destination vector register group only if it is the highest-numbered half of the destination register group (which requires LMUL>=2), as for widening instructions. Any other overlapping encoding raises an illegal-instruction exception.