RISC-V: Add RVV intrinsics for Zvbdota
New RISC-V vector intrinsics for Zvbdota batched dot-products are now available.
This commit introduces new RISC-V Vector (RVV) intrinsics for the Zvbdota extension, which handles batched dot-product operations. It includes support for static source-format selection and accumulator VLEN requirements. The implementation limits the ci (count/index) by the physical VLEN when known and checks its encoding on scalable targets. Explicit rounding modes are also included for vfbdota, ensuring accurate floating-point calculations.
In Details
This change introduces intrinsics for the RISC-V Zvbdota extension, which extends vector dot-product operations to handle batched inputs. New expanders and shape definitions have been added for vqwbdota, vfwbdota, vfqwbdota, and vfbdota. The implementation includes logic to constrain the ci operand by the vector length (VLEN) and to handle different rounding modes for floating-point variants. This is part of the ongoing effort to fully support RISC-V vector extensions, including newer formats like FP8.
- RISC-V
- An open-standard Instruction Set Architecture (ISA) based on Reduced Instruction Set Computing principles. GCC supports various RISC-V extensions for different architectures.
- RVV
- RISC-V Vector extension. This extension allows for Single Instruction, Multiple Data (SIMD) operations on vectors of data, improving performance for array processing and other parallelizable tasks.
- intrinsics
- Special functions or constructs in a programming language that map directly to a specific hardware instruction or a small sequence of instructions. They provide a way to access low-level hardware capabilities from high-level code.
- Zvbdota
- A RISC-V vector extension that provides batched dot-product instructions, enabling efficient computation of multiple dot products in a single operation.
- VLEN
- Vector Length. In the context of RISC-V Vector, VLEN specifies the number of elements that can be processed in a single vector operation. It can be fixed or variable depending on the hardware implementation.