On Thu,  5 Nov 2026 03:41:15 +0800 Max Chou <[email protected]> wrote:

> This RFC patchset introduces the Zvdota/Zvbdota families of dot-product
> extensions based on the ISA specification
> (https://github.com/riscv/riscv-isa-manual/pull/2618 v1.0 commit: 570e32e)
> - Zvdota: Zvqwdota8i/Zvqwdota16i/Zvfwdota16bf/Zvfqwdota8f
> - Zvbdota: Zvqwbdota8i/Zvqwbdota16i/Zvfwbdota16bf/Zvfqwbdota8f/Zvfbdota32f
> 
> This RFC patchset assigns the Zvdota/Zvbdota cpu properties as the
> experimental cpu isa extension properties. These experimental cpu isa
> extension properties will be replaced after the Zvdota/Zvbdota isa
> specification is ratified.
> 
> The toolchains support Zvdota/Zvbdota families extensions:
>  - LLVM (after 23.1.0)
>    - Support v0.2 Zvdota/Zvbdota extensions
>      - https://releases.llvm.org/23.1.0/docs/RISCVUsage.html
>    - llvm/llvm-project#196467, commit d25ec4b84487, merged 2026-05-27.
>      - https://github.com/llvm/llvm-project/pull/196467
>  - GCC (reviewing)
>    - Upstream patchset: <[email protected]>
> 
> References:
>  - riscv-isa-manual PR: https://github.com/riscv/riscv-isa-manual/pull/2618
> 
I've run cross-validation tests based on fp-conv tools [1], and I haven't
found any issues so far. Looks good to me.

Link:
[1]: https://sw23.github.io/fp-conv/

Tested-by: Chao Liu <[email protected]>

Thanks,
Chao

> rnax
> 
> Max Chou (38):
>   fpu/softfloat: Support OCP(Open Compute Project) OFP8 checking
>     functions
>   target/riscv: Introduce riscv_init_fp_status
>   target/riscv: rvv: Introduce RVBNA algorithm for Zvdota/Zvbdota
>     extensions
>   target/riscv: Add cfg property for Zvqwdota8i extension
>   target/riscv: Add implied rules for Zvqwdota8i extension
>   target/riscv: rvv: Implement Zvqwdota8i instructions
>   disas/riscv: Support Zvqwdota8i extension
>   target/riscv: Add Zvqwdota16i cpu property
>   target/riscv: Add Zvqwdota16i dependency imply rule
>   target/riscv: rvv: Implement Zvqwdota16i instructions
>   target/riscv: Add cfg property for Zvfwdota16bf extension
>   target/riscv: Add implied rules for Zvfwdota16bf extension
>   target/riscv: rvv: Implement Zvfwdota16bf instruction
>   disas/riscv: Support Zvfwdota16bf extension
>   target/riscv: Add cfg property for Zvfqwdota8f extension
>   target/riscv: Add implied rules for Zvfqwdota8f extension
>   target/riscv: rvv: Implement Zvfqwdota8f instructions
>   disas/riscv: Support Zvfqwdota8f extension
>   target/riscv: Add cfg property for Zvqwbdota8i extension
>   target/riscv: Add implied rules for Zvqwbdota8i extension
>   target/riscv: rvv: Implement Zvqwbdota8i instructions
>   disas/riscv: Support Zvqwbdota8i extension
>   target/riscv: Add cfg property for Zvqwbdota16i extension
>   target/riscv: Add implied rules for Zvqwbdota16i extension
>   target/riscv: rvv: Implement Zvqwbdota16i instructions
>   target/riscv: Add cfg property for Zvfwbdota16bf extension
>   target/riscv: Add implied rules for Zvfwbdota16bf extension
>   target/riscv: rvv: Implement Zvfwbdota16bf instruction
>   disas/riscv: Support Zvfwbdota16bf extension
>   target/riscv: Add cfg property for Zvfqwbdota8f extension
>   target/riscv: Add implied rules for Zvfqwbdota8f extension
>   target/riscv: rvv: Implement Zvfqwbdota8f instructions
>   disas/riscv: Support Zvfqwbdota8f extension
>   target/riscv: Add cfg property for Zvfbdota32f extension
>   target/riscv: Add implied rules for Zvfbdota32f extension
>   target/riscv: rvv: Implement Zvfbdota32f instructions
>   disas/riscv: Support Zvfbdota32f extension
>   tests/tcg/riscv64: Add test for Zvdota/Zvbdota extensions
> 
>  MAINTAINERS                                 |   6 +
>  disas/riscv-op.c.inc                        |  12 +
>  disas/riscv.c                               |  26 ++
>  disas/riscv.h                               |   2 +
>  fpu/softfloat-specialize.c.inc              |  55 +++
>  include/fpu/softfloat.h                     |  70 ++++
>  target/riscv/cpu.c                          | 121 +++++-
>  target/riscv/cpu_cfg_fields.h.inc           |   9 +
>  target/riscv/helper.h                       |  28 ++
>  target/riscv/insn32.decode                  |  25 ++
>  target/riscv/tcg/insn_trans/trans_rvv.c.inc | 305 ++++++++++++++
>  target/riscv/tcg/meson.build                |   2 +-
>  target/riscv/tcg/rvbna.c                    | 185 +++++++++
>  target/riscv/tcg/rvbna.h                    |  40 ++
>  target/riscv/tcg/tcg-cpu.c                  |  45 +++
>  target/riscv/tcg/vector_helper.c            | 424 +++++++++++++++++++-
>  tests/tcg/riscv64/system/meson.build        |  12 +
>  tests/tcg/riscv64/test-zvdota.S             | 343 ++++++++++++++++
>  18 files changed, 1703 insertions(+), 7 deletions(-)
>  create mode 100644 target/riscv/tcg/rvbna.c
>  create mode 100644 target/riscv/tcg/rvbna.h
>  create mode 100644 tests/tcg/riscv64/test-zvdota.S
> 
> -- 
> 2.56.0
> 
> 
> 

Sent using hkml (https://github.com/sjp38/hackermail)

Reply via email to