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

vmv.x.s

T1 riscv simd insn
Vector move scalar to integer register
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zvl32b
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZvl32b

Summary

Copies the first element of the source vector register vs2 to the destination integer register xd, sign-extending to XLEN bits if SEW < XLEN.

Syntax / Encoding

vmv.x.s xd, vs2 | 0100001xxxxx00000010xxxxx1010111 (mask=0xfe0ff07f match=0x42002057)

Cross-Chip Latency & Throughput (8 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Andes AX45MPV—2—RVV 1.0, VLEN=512rvv_bench_timings
SiFive P870—2.41—RVV 1.0, VLEN=128rvv_bench_timings
SiFive X280—3.14—RVV 1.0, VLEN=512 (Tenstorrent Blackhole)rvv_bench_timings
SpacemiT X100—6—RVV 1.0, VLEN=256rvv_bench_timings
SpacemiT X60—2—RVV 1.0, VLEN=256rvv_bench_timings
Tenstorrent Ascalon-X—1—RVV 1.0, VLEN=256rvv_bench_timings
XuanTie C908—2—RVV 1.0, VLEN=128 (Kendryte K230)rvv_bench_timings
XuanTie C920v2—0.65—RVV 1.0, VLEN=128rvv_bench_timings

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0100001xxxxx00000010xxxxx10101110xfe0ff07f / 0x42002057

Operands

NameDescription
vs2bits [24:20]
xdbits [11:7]

Reference Notes

Copies the first element of the source vector register vs2 to the
destination integer register xd, sign-extending to XLEN bits if SEW < XLEN.

This is a scalar read instruction that always reads element 0 of vs2,
regardless of vstart. The vstart CSR is reset to 0 after execution.