ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

fmv.h.x

T1 riscv fp insn
Half-precision floating-point move from integer
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zfbfmin, Zfhmin
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZfbfmin, Zfhmin

Summary

Moves the half-precision value encoded in IEEE 754-2008 standard encoding from the lower 16 bits of integer register xs1 to the floating-point register fd. The bits are not modified in the transfer, and in particular, the payloads of non-canonical NaNs are preserved.

Syntax / Encoding

fmv.h.x fd, xs1 | 111101000000xxxxx000xxxxx1010011 (mask=0xfff0707f match=0xf4000053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV111101000000xxxxx000xxxxx10100110xfff0707f / 0xf4000053

Operands

NameDescription
xs1bits [19:15]
fdbits [11:7]

Reference Notes

Moves the half-precision value encoded in IEEE 754-2008 standard encoding
from the lower 16 bits of integer register `xs1` to the floating-point
register `fd`. The bits are not modified in the transfer, and in particular,
the payloads of non-canonical NaNs are preserved.