mv

Move Pseudo-instruction

Copies the value of t2 into t1.

Forms

Operands

t1
Any integer register, x0 to x31, or its named alias, such as zero, t0 or t6.
t2
An integer register. It may be the same register as t1.
# mv copies a prepared value; t0=12 and t2 shows the result.
.text
li t0, 12
# t0=12; mv copies it, so t2 becomes 12.
mv t2, t0