fmv.d.x

Move integer bits to FP register (double) RV64 only

Copies the raw 64 bits of the second register into the first without converting them.

RISC-V manual: fmv.d.x

Forms

  • fmv.d.x ,

Operands

f1
Any floating-point register, f0 to f31, or its named alias, such as ft0, fa0 or ft11.
t1
Any integer register, x0 to x31, or its named alias, such as zero, t0 or t6.

This example runs on RV64.

# The source bits encode double 1.0; fmv.d.x leaves the same 1.0 bits in the destination.
.text
li t0, 4607182418800017408
fmv.d.x f1, t0