Skip to content

riscv_zvfh

Tsukasa OI edited this page Aug 3, 2023 · 6 revisions

Extension: Zvfh and Zvfhmin

Feature Description

This commit adds support for vector FP16 extensions: Zvfh and Zvfhmin.

This is based on:

  1. https://github.com/riscv/riscv-v-spec/blob/master/v-spec.adoc#zvfhmin-vector-extension-for-minimal-half-precision-floating-point
  2. https://github.com/riscv/riscv-v-spec/blob/master/v-spec.adoc#zvfh-vector-extension-for-half-precision-floating-point

Despite not having any new instructions, it will be necessary since those extensions are already implemented in GCC.

Note that however, in this commit, following dependencies are implemented.

  1. ZvfhminZve32f
  2. ZvfhZvfhmin (not ZvfhZve32f as in the documentation)
  3. ZvfhZfhmin

This is because the instructions and configurations supported by the Zvfh extension is a strict superset of the Zvfhmin extension and ZvfhZve32f dependency is indirectly derived from that fact.

Clone this wiki locally