vunzipe.v

Vector unzip even

This instruction is defined by:

Encoding

svg

Synopsis

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).

Access

M HS U VS VU

Always

Always

Always

Always

Always

Decode Variables

Bits<1> vm = $encoding[25];
Bits<5> vs2 = $encoding[24:20];
Bits<5> vd = $encoding[11:7];

Execution

  • Pruned, XLEN == 64

  • Original