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.
fmv.x.w xd, fs1
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 111 | 000000000 | fs1 | 000 | xd | 1 | 0 | 1 | 00 | 11 | ||||||||||||||||||||||
| Variable | Bits | Width |
|---|---|---|
fs1 | [19:15] | 5 |
xd | [11:7] | 5 |
check_f_ok($encoding); X[xd] = sext(F[fs1][31:0], 32);
F
| S | U | VS | VU |
|---|---|---|---|
| Always | Always | Always | Always |
| When | Use |
|---|---|
| true | fmv.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.