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

fmvh.x.q

T1 riscv fp insn
Floating-Point Move High Half to Integer from Quad-Precision
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Q, Zfa
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsQ, Zfa

Summary

The fmvh.x.q instruction moves bits 127:64 of floating-point register fs1 into integer register xd. It is encoded in the OP-FP major opcode with _funct3_=0, _rs2_=1, and _funct7_=1110011.

Syntax / Encoding

fmvh.x.q xd, fs1 | 111001100001xxxxx000xxxxx1010011 (mask=0xfff0707f match=0xe6100053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV111001100001xxxxx000xxxxx10100110xfff0707f / 0xe6100053

Operands

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

Reference Notes

The `fmvh.x.q` instruction moves bits `127:64` of floating-point register `fs1` into integer register `xd`.
It is encoded in the OP-FP major opcode with _funct3_=0, _rs2_=1, and _funct7_=1110011.

`fmvh.x.q` is used in conjunction with the existing `fmv.x.d` instruction to move a quad-precision floating-point
number to a pair of x-registers.