fmv.x.w

Move FP bits to integer register Pseudo-instruction

Copies the raw 32 bits of the second register into the first without converting them, sign-extending on RV64.

Also written as: fmv.x.s

RISC-V manual: fmv.x.s

Forms

Operands

t1
Any integer register, x0 to x31, or its named alias, such as zero, t0 or t6.
f1
Any floating-point register, f0 to f31, or its named alias, such as ft0, fa0 or ft11.
# The source bits encode single 1.0; fmv.x.w writes 0x3F800000 to t2.
.text
li t0, 1065353216
fmv.s.x f1, t0
fmv.x.w t2, f1