VMV.V.I

RISC-V VMV.V.I Instruction Details

Instruction ManualI-type

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

Instruction Syntax

vmv.v.i vd, imm
Operand Breakdown
Destination rd: general-purpose register receiving the result.
Source rs1: register holding the first operand.
Immediate imm: 12-bit signed value, sign-extended before operation with rs1.
VVector Data MovementScalar-Vector Transfer

Instruction Behavior

VMV.V.I is a RISC-V V vector move instruction. It broadcasts the sign-extended immediate 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.i v8, -1».

Reduction Result

Understand this scenario with real code like «vmv.v.i v8, -1».

Pre-Use Checklist

Syntax Check
  • Confirm the current instruction format is I-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

Shares encoding space with vmerge.vim; vmv.v.i is the unmasked immediate broadcast form
5-bit imm only

FAQ

How does VMV.V.I 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.