RISC-V ISA Explorer · Float & Numerics (Zf*)

Zfh: Half-Precision FP (16-bit)

Ratified 2021-11 · version 1.0.0

IEEE 754-2008 16-bit arithmetic, for workloads where reduced precision saves memory and power.

Typical use: Reduced-precision inference and signal processing

Specification

Open Zfh in the explorer

Dependencies

Requires

Instructions (26)

MnemonicNameEncodingMatchMask
FADD.H0000010------------------10100110x40000530xfe00007f
FCLASS.H111001000000-----001-----10100110xe40010530xfff0707f
FCVT.H.LFloating-point Convert Long to Half-precision110101000010-------------10100110xd42000530xfff0007f
FCVT.H.LUFloating-point Convert Unsigned Long to Half-precision110101000011-------------10100110xd43000530xfff0007f
FCVT.H.WFloating-point Convert Word to Half-precision110101000000-------------10100110xd40000530xfff0007f
FCVT.H.WUFloating-point Convert Unsigned Word to Half-precision110101000001-------------10100110xd41000530xfff0007f
FCVT.L.HFloating-point Convert Half-precision to Long110001000010-------------10100110xc42000530xfff0007f
FCVT.LU.HFloating-point Convert Half-precision to Unsigned Long110001000011-------------10100110xc43000530xfff0007f
FCVT.W.HFloating-point Convert Half-precision to Word110001000000-------------10100110xc40000530xfff0007f
FCVT.WU.HFloating-point Convert Half-precision to Word110001000001-------------10100110xc41000530xfff0007f
FDIV.H0001110------------------10100110x1c0000530xfe00007f
FEQ.H1010010----------010-----10100110xa40020530xfe00707f
FLE.H1010010----------000-----10100110xa40000530xfe00707f
FLT.H1010010----------001-----10100110xa40010530xfe00707f
FMADD.H-----10------------------10000110x40000430x600007f
FMAX.H0010110----------001-----10100110x2c0010530xfe00707f
FMIN.H0010110----------000-----10100110x2c0000530xfe00707f
FMSUB.H-----10------------------10001110x40000470x600007f
FMUL.H0001010------------------10100110x140000530xfe00007f
FNMADD.H-----10------------------10011110x400004f0x600007f
FNMSUB.H-----10------------------10010110x400004b0x600007f
FSGNJ.H0010010----------000-----10100110x240000530xfe00707f
FSGNJN.H0010010----------001-----10100110x240010530xfe00707f
FSGNJX.H0010010----------010-----10100110x240020530xfe00707f
FSQRT.H010111000000-------------10100110x5c0000530xfff0007f
FSUB.H0000110------------------10100110xc0000530xfe00007f