Move half-precision value from floating-point to integer register
Moves the half-precision value in floating-point register fs1 represented in IEEE 754-2008 encoding to the lower 16 bits of integer register xd.
The bits are not modified in the transfer, and in particular, the payloads of non-canonical NaNs are preserved.
The highest XLEN-16 bits of the destination register are filled with copies of the floating-point number's sign bit.
fmv.x.h 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 | 00 | 1 | 000000 | 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][15:0], 16);
Zfhmin or Zfbfmin
| S | U | VS | VU |
|---|---|---|---|
| Always | Always | Always | Always |
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.