Zhinx Extension

Versions

Version 1.0.0

State

ratified

Ratification date

2021-11

Synopsis

The Zhinx extension provides analogous half-precision floating-point instructions. The Zhinx extension depends upon the Zfinx extension. The Zhinx extension adds all of the instructions that the Zfh extension adds, except for the transfer instructions FLH, FSH, FMV.H.X, and FMV.X.H. The Zhinx variants of these Zfh-extension instructions have the same semantics, except that whenever such an instruction would have accessed an f register, it instead accesses the x register with the same number.

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