fmv.x.w

The `fmv.x.w` instruction moves the single-precision value in floating-point register `fs1`` represented in `IEEE 754-2008` encoding to the lower 32 bits of integer register `xd`. The bits are not modified in the transfer, and in particular, the payloads of non-canonical NaNs are preserved. For RV64, the higher 32 bits of the destination register are filled with copies of the floating-point number's sign bit.

Synopsis

fmv.x.w xd, fs1

Encoding

Type:

067111214151920311010011xd000fs1111000000000
funct7: 1110000
funct3: 000
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open fmv.x.w in rvcodecjs

Availability