fmv.x.w
Move FP bits to integer register
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
Used in
- Floating point and the F and D extensionsRISC-V assembly
Forms
Operands
t1- Any integer register,
x0tox31, or its named alias, such aszero,t0ort6. f1- Any floating-point register,
f0tof31, or its named alias, such asft0,fa0orft11.
# 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