mv
pseudolyszt.net covers mv and other RISC-V instructions in more detail.
Description
Copies a value between registers. In mv rd, rs, the value in rs goes to rd and the source keeps its value. The assembler expands it to addi rd, rs, 0.
Expands to
addi rd, rs, 0
The assembler replaces this pseudo-instruction with the real instruction or instructions listed above.
Official definition
ADDI adds the sign-extended 12-bit immediate to register rs1. Arithmetic overflow is ignored and the result is simply the low XLEN bits of the result. ADDI rd, rs1, 0 is used to implement the MV rd, rs1 assembler pseudoinstruction.