VMV.V.X

RISC-V VMV.V.X Instruction Details

Instruction ManualR-type

Move or broadcast values into destination vector elements according to the instruction source operand.

Instruction Syntax

vmv.v.x vd, rs1
Operand Breakdown
Destination rd: register receiving the operation result.
Source rs1: register holding the first operand.
Source rs2: register holding the second operand.
VVector Data MovementScalar-Vector Transfer

Instruction Behavior

VMV.V.X is a RISC-V V vector move instruction. It broadcasts integer scalar x[rs1] to active elements of vd. It is an unmasked move form; the corresponding masked selection form is vmerge.

Quick Understanding & Search Notes

VMV instructions move or broadcast data; they do not perform arithmetic or access memory.

This instruction is an unmasked form with no extra v0 execution mask; destination element coverage is defined by the instruction and current vl.
Move instructions preserve or extend source bit patterns according to the source type.
Use vmerge forms for masked selection rather than adding an ordinary execution mask to vmv.

Common Usage Scenarios

Vector Init

Understand this scenario with real code like «vmv.v.x v8, a0».

Reduction Result

Understand this scenario with real code like «vmv.v.x v8, a0».

Pre-Use Checklist

Syntax Check
  • Confirm the current instruction format is R-type.
  • Confirm the operand order matches the example.
Semantic Check
  • Ensure the destination register usage is compatible with the calling convention.
  • Confirm this is not the lower-level form of a pseudo-instruction expansion.

Pitfalls / Common Confusions

Encoding requires vs2=v0
Shares encoding with vmerge.vxm

FAQ

How does VMV.V.X handle masking?

It has no ordinary v0 execution mask; if a mask operand appears in the syntax, that operand is data, not an extra execution mask.