ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

vfbdota.vv

T1 riscv simd insn
Vector FP32 Batched Dot Product Accumulate
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zvfbdota32f
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZvfbdota32f

Summary

Performs a batched dot-product operation on FP32 vectors, accumulating into FP32. The instruction is reserved unless SEW=32 and LMUL=1. The vs1, vs2, and vd operands all have EEW=SEW.

Syntax / Encoding

vfbdota.vv vd, vs2, vs1, ci, vm | 101011xxxxxxxxxxx001xxxxx1110111 (mask=0xfc00707f match=0xac001077)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV101011xxxxxxxxxxx001xxxxx11101110xfc00707f / 0xac001077

Operands

NameDescription
vmbits [25:25]
vs2bits [24:23]
cibits [22:20]
vs1bits [19:15]
vdbits [11:7]

Reference Notes

Performs a batched
dot-product operation on FP32 vectors, accumulating into FP32. The
instruction is reserved unless `SEW=32` and `LMUL=1`. The `vs1`, `vs2`, and
`vd` operands all have `EEW=SEW`.

The batched dot-product family treats `vs1` as an EMUL=1 vector register
group and `vs2` as an EMUL=8 vector register group, computing eight
independent dot products and accumulating the results into `vd`. `vl` sets
the length of each dot product. Tail elements are substituted with the bit
pattern of all zeros, then the computation is performed as though
`vl=VLMAX`.

For long-vector implementations with `VLEN > 8*EEW`, `ci` is a 3-bit
scaled-by-8 immediate indicating which eight elements of `vd` are read and
written. The `ci` field is encoded in `vs2[2:0]`; those bits are not needed
for the register address because `vs2` addresses an EMUL=8 register group.
The instruction is reserved if `ci >= VLEN/(8*EEW)`. Destination elements
at or beyond `ci+8` are tail elements, elements below `ci` are prestart
elements, and the remaining elements are body elements. The destination
vector register group cannot overlap either source vector register group.
Masked-off body elements follow the current mask agnostic or undisturbed
policy, and the instruction is reserved when `vstart` is nonzero; exceptions
are always reported with `vstart=0`.

The FP32 products are first computed to full precision, setting the invalid
operation exception flag as appropriate. The products are then optionally
rounded to FP32 according to the dynamic rounding mode, setting the inexact,
overflow, and underflow exception flags as appropriate. The sum of these
products and the accumulator is then computed as though by `vfredusum.vs`
with `SEW=32`, including the setting of exception flags.

This formulation allows significant implementation flexibility while being
sufficiently precise to implement SGEMM. The algorithm used by
`vfredusum.vs` offers several implementation choices; implementations are
not required to use the same algorithm configuration for `vfbdota.vv` as for
`vfredusum.vs`.