vpairo.vv

Vector pair odd

This instruction is defined by:

Encoding

svg

Synopsis

Interleaves the odd-indexed elements of two source vector register groups into the destination. All operands have EMUL=LMUL. For destination element index i, vd[i] = vs2[i+1] if i is even and vd[i] = vs1[i] if i is odd, producing vd = [vs2[1], vs1[1], vs2[3], vs1[3], …​]. If vl is odd, the result for element vl-1 is 0 and vs2[vl] is not read, which keeps the result independent of register contents at or above vl.

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

The destination vector register group cannot overlap either source vector register group; an overlapping encoding raises an illegal-instruction exception.

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> vs1 = $encoding[19:15];
Bits<5> vd = $encoding[11:7];

Execution

  • Pruned, XLEN == 64

  • Original