ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

Zfh

T1 riscv feature feature
Half-precision floating point
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon Scopev1.0.0 (ratified)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
ExtensionsZfhmin

Summary

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).

Syntax / Encoding

Zfh v1.0.0 (ratified)

Reference Notes

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).