Webcentive RISC-V Reference

fmvh.x.q

Floating-Point Move High Half to Integer from Quad-Precision

Extension
Q, Zfa
XLEN
RV64 only
Assembly (riscv-unified-db)
fmvh.x.q xd, fs1
Length
32-bit

Encoding

312726252420191514121176210
111001100001rs1000rd1010011

Match 0xe6100053, mask 0xfff0707f. Source: fmvh.x.q rd rs1 24..20=1 31..27=0x1C 14..12=0 26..25=3 6..2=0x14 1..0=3 in riscv-opcodes/extensions/rv64_q_zfa.

FieldBitsriscv-opcodes name
rs119:15rs1
rd11:7rd

Description

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.

Description from riscv-unified-db, reformatted.

Specification and related pages