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

cm.mvsa01

T1 riscv alu insn
Move a0-a1 into two registers of s0-s7
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zcmp
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZcmp

Summary

Moves a0 into r1s' and a1 into r2s'. r1s' and r2s' must be different. The execution is atomic, so it is not possible to observe state where only one of r1s' or r2s' has been updated. The encoding uses sreg number specifiers instead of xreg number specifiers to save encoding space. The mapping between them is specified in the pseudo-code below.

Syntax / Encoding

cm.mvsa01 r1s, r2s | 101011xxx01xxx10 (mask=0xfc63 match=0xac22)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV101011xxx01xxx100xfc63 / 0xac22

Operands

NameDescription
r1sbits [9:7]
r2sbits [4:2]

Reference Notes

Moves a0 into r1s' and a1 into r2s'. r1s' and r2s' must be different.
The execution is atomic, so it is not possible to observe state where only one of r1s' or r2s' has been updated.
The encoding uses sreg number specifiers instead of xreg number specifiers to save encoding space.
The mapping between them is specified in the pseudo-code below.