ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,761 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vpairo.vv

T1 riscv simd insn
Vector pair odd
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zvzip, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZvzip, Zkt-DIT

Summary

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)

WidthFormatBit PatternMask / Match
32RV001111xxxxxxxxxxx010xxxxx10101110xfc00707f / 0x3c002057

Operands

NameDescription
vmbits [25]
vs2bits [24:20]
vs1bits [19:15]
vdbits [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.