Zfh Extension

Versions

Version 1.0.0

State

ratified

Ratification date

2021-11

Synopsis

16-bit half-precision binary floating-point instructions compliant with the IEEE 754-2008 arithmetic standard. The Zfh extension depends on the single-precision floating-point extension, F. The NaN-boxing scheme is extended to allow a half-precision value to be NaN-boxed inside a single-precision value (which may be recursively NaN-boxed inside a double- or quad-precision value when the D or Q extension is present).

Instructions

The following instructions are affected by this extension:

fadd.h

Floating-Point Add Half-Precision

fclass.h

Floating-Point Classify Half-Precision

fcvt.h.w

Floating-point Convert Word to Half-precision

fcvt.h.wu

Floating-point Convert Unsigned Word to Half-precision

fcvt.w.h

Floating-point Convert Half-precision to Word

fcvt.wu.h

Floating-point Convert Half-precision to Unsigned Word

fdiv.h

Floating-Point Divide Half-Precision

feq.h

Floating-Point Equal Half-Precision

fle.h

Floating-Point Less Than or Equal Half-Precision

flt.h

Floating-Point Less Than Half-Precision

fmadd.h

Floating-Point Multiply-Add Half-Precision

fmax.h

Floating-Point Maximum-Number Half-Precision

fmin.h

Floating-Point Minimum-Number Half-Precision

fmsub.h

Floating-Point Multiply-Subtract Half-Precision

fmul.h

Floating-Point Multiply Half-Precision

fnmadd.h

Floating-Point Negate-Multiply-Add Half-Precision

fnmsub.h

Floating-Point Negate-Multiply-Subtract Half-Precision

fsgnj.h

Floating-Point Sign-Inject Half-Precision

fsgnjn.h

Floating-Point Sign-Inject Negate Half-Precision

fsgnjx.h

Floating-Point Sign-Inject XOR Half-Precision

fsqrt.h

Floating-Point Square Root Half-Precision

fsub.h

Floating-Point Subtract Half-Precision