Skip to content

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

Max Chou qemu-devel qemu-riscv 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest38 patches 0 repliesNew

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 -00 replies
2/38target/riscv: Introduce riscv_init_fp_statustarget/riscv/cpu.c+10 -30 replies
3/38target/riscv: rvv: Introduce RVBNA algorithm for Zvdota/Zvbdota extensionsMAINTAINERS target/riscv/tcg/meson.build target/riscv/tcg/rvbna.c +2 more+227 -10 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 -20 replies
5/38target/riscv: Add implied rules for Zvqwdota8i extensiontarget/riscv/cpu.c+10 -00 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+118 -00 replies
7/38disas/riscv: Support Zvqwdota8i extensiondisas/riscv-op.c.inc disas/riscv.c+8 -00 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 -10 replies
9/38target/riscv: Add Zvqwdota16i dependency imply ruletarget/riscv/cpu.c+10 -00 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+13 -60 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 -00 replies
12/38target/riscv: Add implied rules for Zvfwdota16bf extensiontarget/riscv/cpu.c+10 -00 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+108 -00 replies
14/38disas/riscv: Support Zvfwdota16bf extensiondisas/riscv-op.c.inc disas/riscv.c+5 -00 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 -00 replies
16/38target/riscv: Add implied rules for Zvfqwdota8f extensiontarget/riscv/cpu.c+10 -00 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+50 -10 replies
18/38disas/riscv: Support Zvfqwdota8f extensiondisas/riscv-op.c.inc disas/riscv.c+8 -30 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 -00 replies
20/38target/riscv: Add implied rules for Zvqwbdota8i extensiontarget/riscv/cpu.c+10 -00 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+100 -00 replies
22/38disas/riscv: Support Zvqwbdota8i extensiondisas/riscv-op.c.inc disas/riscv.c disas/riscv.h+13 -00 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 -00 replies
24/38target/riscv: Add implied rules for Zvqwbdota16i extensiontarget/riscv/cpu.c+10 -00 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+11 -60 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 -00 replies
27/38target/riscv: Add implied rules for Zvfwbdota16bf extensiontarget/riscv/cpu.c+10 -00 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+40 -00 replies
29/38disas/riscv: Support Zvfwbdota16bf extensiondisas/riscv-op.c.inc disas/riscv.c+2 -00 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 -00 replies
31/38target/riscv: Add implied rules for Zvfqwbdota8f extensiontarget/riscv/cpu.c+10 -00 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+24 -10 replies
33/38disas/riscv: Support Zvfqwbdota8f extensiondisas/riscv-op.c.inc disas/riscv.c+5 -00 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 -00 replies
35/38target/riscv: Add implied rules for Zvfbdota32f extensiontarget/riscv/cpu.c+10 -00 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+72 -00 replies
37/38disas/riscv: Support Zvfbdota32f extensiondisas/riscv-op.c.inc disas/riscv.c+2 -00 replies
38/38tests/tcg/riscv64: Add test for Zvdota/Zvbdota extensionstests/tcg/riscv64/system/meson.build tests/tcg/riscv64/test-zvdota.S+355 -00 replies

Reviews trailers per patch

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

PatchDaniel Henrique BarbozaChao Liu
1/38R-b R-b T-b
2/38R-b R-b T-b
3/38R-b R-b T-b
4/38R-b R-b T-b
5/38R-b R-b T-b
6/38R-b R-b T-b
7/38R-b R-b T-b
8/38R-b R-b T-b
9/38R-b R-b T-b
10/38R-b R-b T-b
11/38R-b R-b T-b
12/38R-b R-b T-b
13/38R-b T-b
14/38R-b R-b T-b
15/38R-b R-b T-b
16/38R-b R-b T-b
17/38R-b R-b T-b
18/38R-b R-b T-b
19/38R-b R-b T-b
20/38R-b R-b T-b
21/38R-b R-b T-b
22/38R-b R-b T-b
23/38R-b R-b T-b
24/38R-b R-b T-b
25/38R-b R-b T-b
26/38R-b R-b T-b
27/38R-b R-b T-b
28/38R-b R-b T-b
29/38R-b R-b T-b
30/38R-b R-b T-b
31/38R-b R-b T-b
32/38R-b R-b T-b
33/38R-b R-b T-b
34/38R-b R-b T-b
35/38R-b R-b T-b
36/38R-b R-b T-b
37/38R-b R-b T-b
38/38R-b R-b T-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 [PATCH v1 00/38] target/riscv: Add Zvdota/Zvbdota families of dot-product extensions

This patchset introduces the Zvdota/Zvbdota families of dot-product extensions based on the freeze ISA specification
(https://github.com/riscv/riscv-isa-manual/releases/tag/zvdota-0.9 v0.9 freeze)
- Zvdota: Zvqwdota8i/Zvqwdota16i/Zvfwdota16bf/Zvfqwdota8f
- Zvbdota: Zvqwbdota8i/Zvqwbdota16i/Zvfwbdota16bf/Zvfqwbdota8f/Zvfbdota32f

This 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]>

Changes since RFC <[email protected]>:
- Rebase on the latest riscv-to-apply.next branch (commit id: 4ac269e)
- Fix the OFP8 checking functions patch description typo.
- Use g_autofree for the temporary floating-point input arrays.
- Simplify the RVBNA final accumulator addition exception flag handling.
- Remove the unused FP16 RVBNA function and declaration.
- Share the scalar and batched integer dot-product helper implementation.
- Gather the broadcast vs1 input once for active batched fp outputs.
- Share the batched translation setup and reuse the common scalar vector translation setup.
- Consolidate the batched destination capacity and tail handling.
- Add the review and test tags recorded in the v1 patches.

References:
- riscv-isa-manual tag: https://github.com/riscv/riscv-isa-manual/releases/tag/zvdota-0.9

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                       |  29 ++
 target/riscv/insn32.decode                  |  25 ++
 target/riscv/tcg/insn_trans/trans_rvv.c.inc | 203 ++++++++++++
 target/riscv/tcg/meson.build                |   2 +-
 target/riscv/tcg/rvbna.c                    | 182 +++++++++++
 target/riscv/tcg/rvbna.h                    |  37 +++
 target/riscv/tcg/tcg-cpu.c                  |  45 +++
 target/riscv/tcg/vector_helper.c            | 288 +++++++++++++++-
 tests/tcg/riscv64/system/meson.build        |  12 +
 tests/tcg/riscv64/test-zvdota.S             | 343 ++++++++++++++++++++
 18 files changed, 1460 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.43.0