← Home

fmv.x.h

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.

Assembly format

fmv.x.h xd, fs1

Encoding

313029282726252423222120191817161514131211109876543210
111001000000fs1000xd1010011

Decode variables

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

Execution

check_f_ok($encoding);

X[xd] = sext(F[fs1][15:0], 16);

Defined by

Zfhmin or Zfbfmin

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

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.