Skip to content

RFC target/riscv: Add Zvdota/Zvbdota families of dot-product extensions

Max Chou qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest38 patches 78 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/38fpu/softfloat: Support OCP(Open Compute Project) OFP8 checking functionsfpu/softfloat-specialize.c.inc include/fpu/softfloat.h+125 -02 replies
2/38target/riscv: Introduce riscv_init_fp_statustarget/riscv/cpu.c+10 -32 replies
3/38target/riscv: rvv: Introduce RVBNA algorithm for Zvdota/Zvbdota extensionsMAINTAINERS target/riscv/tcg/meson.build target/riscv/tcg/rvbna.c +2 more+233 -12 replies
4/38target/riscv: Add cfg property for Zvqwdota8i extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+12 -22 replies
5/38target/riscv: Add implied rules for Zvqwdota8i extensiontarget/riscv/cpu.c+10 -02 replies
6/38target/riscv: rvv: Implement Zvqwdota8i instructionstarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+120 -02 replies
7/38disas/riscv: Support Zvqwdota8i extensiondisas/riscv-op.c.inc disas/riscv.c+8 -02 replies
8/38target/riscv: Add Zvqwdota16i cpu propertytarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+11 -12 replies
9/38target/riscv: Add Zvqwdota16i dependency imply ruletarget/riscv/cpu.c+10 -02 replies
10/38target/riscv: rvv: Implement Zvqwdota16i instructionstarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+9 -42 replies
11/38target/riscv: Add cfg property for Zvfwdota16bf extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+10 -02 replies
12/38target/riscv: Add implied rules for Zvfwdota16bf extensiontarget/riscv/cpu.c+10 -02 replies
13/38target/riscv: rvv: Implement Zvfwdota16bf instructiontarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+95 -03 replies
14/38disas/riscv: Support Zvfwdota16bf extensiondisas/riscv-op.c.inc disas/riscv.c+5 -02 replies
15/38target/riscv: Add cfg property for Zvfqwdota8f extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+10 -02 replies
16/38target/riscv: Add implied rules for Zvfqwdota8f extensiontarget/riscv/cpu.c+10 -02 replies
17/38target/riscv: rvv: Implement Zvfqwdota8f instructionstarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+118 -02 replies
18/38disas/riscv: Support Zvfqwdota8f extensiondisas/riscv-op.c.inc disas/riscv.c+8 -32 replies
19/38target/riscv: Add cfg property for Zvqwbdota8i extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+10 -02 replies
20/38target/riscv: Add implied rules for Zvqwbdota8i extensiontarget/riscv/cpu.c+10 -02 replies
21/38target/riscv: rvv: Implement Zvqwbdota8i instructionstarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+139 -02 replies
22/38disas/riscv: Support Zvqwbdota8i extensiondisas/riscv-op.c.inc disas/riscv.c disas/riscv.h+13 -02 replies
23/38target/riscv: Add cfg property for Zvqwbdota16i extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+10 -02 replies
24/38target/riscv: Add implied rules for Zvqwbdota16i extensiontarget/riscv/cpu.c+10 -02 replies
25/38target/riscv: rvv: Implement Zvqwbdota16i instructionstarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+9 -42 replies
26/38target/riscv: Add cfg property for Zvfwbdota16bf extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+10 -02 replies
27/38target/riscv: Add implied rules for Zvfwbdota16bf extensiontarget/riscv/cpu.c+10 -02 replies
28/38target/riscv: rvv: Implement Zvfwbdota16bf instructiontarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+112 -02 replies
29/38disas/riscv: Support Zvfwbdota16bf extensiondisas/riscv-op.c.inc disas/riscv.c+2 -02 replies
30/38target/riscv: Add cfg property for Zvfqwbdota8f extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c +1 more+10 -02 replies
31/38target/riscv: Add implied rules for Zvfqwbdota8f extensiontarget/riscv/cpu.c+10 -02 replies
32/38target/riscv: rvv: Implement Zvfqwbdota8f instructionstarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+90 -02 replies
33/38disas/riscv: Support Zvfqwbdota8f extensiondisas/riscv-op.c.inc disas/riscv.c+5 -02 replies
34/38target/riscv: Add cfg property for Zvfbdota32f extensiontarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c+8 -02 replies
35/38target/riscv: Add implied rules for Zvfbdota32f extensiontarget/riscv/cpu.c+10 -02 replies
36/38target/riscv: rvv: Implement Zvfbdota32f instructionstarget/riscv/helper.h target/riscv/insn32.decode target/riscv/tcg/insn_trans/trans_rvv.c.inc +1 more+75 -02 replies
37/38disas/riscv: Support Zvfbdota32f extensiondisas/riscv-op.c.inc disas/riscv.c+2 -02 replies
38/38tests/tcg/riscv64: Add test for Zvdota/Zvbdota extensionstests/tcg/riscv64/system/meson.build tests/tcg/riscv64/test-zvdota.S+355 -02 replies

Reviews trailers per patch

All 38 patches have a Reviewed-by or Acked-by.

PatchDaniel Henrique BarbozaChao Liu
SeriesT-b
1/38R-b R-b
2/38R-b R-b
3/38R-b R-b
4/38R-b R-b
5/38R-b R-b
6/38R-b R-b
7/38R-b R-b
8/38R-b R-b
9/38R-b R-b
10/38R-b R-b
11/38R-b R-b
12/38R-b R-b
13/38R-b
14/38R-b R-b
15/38R-b R-b
16/38R-b R-b
17/38R-b R-b
18/38R-b R-b
19/38R-b R-b
20/38R-b R-b
21/38R-b R-b
22/38R-b R-b
23/38R-b R-b
24/38R-b R-b
25/38R-b R-b
26/38R-b R-b
27/38R-b R-b
28/38R-b R-b
29/38R-b R-b
30/38R-b R-b
31/38R-b R-b
32/38R-b R-b
33/38R-b R-b
34/38R-b R-b
35/38R-b R-b
36/38R-b R-b
37/38R-b R-b
38/38R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/38] target/riscv: Add Zvdota/Zvbdota families of dot-product extensions

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

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
Signature · 1 line
2.56.0