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

fmv.x.h

T1 riscv fp insn
Move half-precision value from floating-point to integer register
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 in floating-point register fs1 represented in IEEE 754-2008 encoding to the lower 16 bits of integer register xd.

Syntax / Encoding

fmv.x.h xd, fs1 | 111001000000xxxxx000xxxxx1010011 (mask=0xfff0707f match=0xe4000053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV111001000000xxxxx000xxxxx10100110xfff0707f / 0xe4000053

Operands

NameDescription
fs1bits [19:15]
xdbits [11:7]

Reference Notes

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.