ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

vpaire.vv

T1 riscv simd insn
Vector pair even
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 even-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] if i is even and vd[i] = vs1[i-1] if i is odd, producing vd = [vs2[0], vs1[0], vs2[2], vs1[2], ...].

Syntax / Encoding

vpaire.vv vd, vs2, vs1, vm | 001111xxxxxxxxxxx000xxxxx1010111 (mask=0xfc00707f match=0x3c000057)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV001111xxxxxxxxxxx000xxxxx10101110xfc00707f / 0x3c000057

Operands

NameDescription
vmbits [25]
vs2bits [24:20]
vs1bits [19:15]
vdbits [11:7]

Reference Notes

Interleaves the even-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]` if `i` is even and `vd[i] = vs1[i-1]` if `i` is
odd, producing `vd = [vs2[0], vs1[0], vs2[2], vs1[2], ...]`.

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.