← Home

fmv.x.w

Floating-Point Move Single-Precision Word to Integer Register

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.

Assembly format

fmv.x.w xd, fs1

Encoding

313029282726252423222120191817161514131211109876543210
111000000000fs1000xd1010011

Decode variables

VariableBitsWidth
fs1[19:15]5
xd[11:7]5

Execution

check_f_ok($encoding);

X[xd] = sext(F[fs1][31:0], 32);

Defined by

F

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

Pseudoinstructions

WhenUse
truefmv.x.s xd, fs1

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.