vpairo.vv
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZvzip, Zkt-DITSummary
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.
Syntax / Encoding
vpairo.vv vd, vs2, vs1, vm | 001111xxxxxxxxxxx010xxxxx1010111 (mask=0xfc00707f match=0x3c002057)
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 001111xxxxxxxxxxx010xxxxx1010111 | 0xfc00707f / 0x3c002057 |
Operands
| Name | Description |
|---|---|
vm | bits [25] |
vs2 | bits [24:20] |
vs1 | bits [19:15] |
vd | bits [11:7] |
Reference Notes
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.