vfbdota.vv
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZvfbdota32fSummary
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)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 101011xxxxxxxxxxx001xxxxx1110111 | 0xfc00707f / 0xac001077 |
Operands
| Name | Description |
|---|---|
vm | bits [25:25] |
vs2 | bits [24:23] |
ci | bits [22:20] |
vs1 | bits [19:15] |
vd | bits [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`.