GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
risc-v Performance Win

RISC-V: Add RVV intrinsics for Zvdota

New RISC-V vector intrinsics for Zvdota integer, BF16, and FP8 dot-products are now available.

This commit introduces RISC-V Vector (RVV) intrinsics for the Zvdota extension, supporting integer, BF16, and FP8 data types for dot-product operations. It includes distinct FP8 vector types and selects static instruction patterns for each source-type combination. The changes also preserve generated type-index mappings and handle new accumulator and FP8 type indexes, enabling efficient computation with these specialized data formats.

In Details

This commit adds support for the RISC-V Zvdota extension, which enables dot-product operations on various data types including integer, BF16, and FP8. New expanders for vqwdota, vfwdota, and vfqwdota are introduced, along with helpers to manage distinct FP8 types and their corresponding type indexes. The changes ensure that the compiler can correctly generate code for these specialized vector operations, including distinct operand type tables and mangling for FP8 formats.

For Context
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.
Zvdota
A RISC-V vector extension that provides dot-product instructions for various data types, including integer, BF16, and FP8, enabling efficient vector computations.
BF16
BFloat16. A 16-bit floating-point format with the same exponent range as IEEE 754 single-precision (32-bit) floats but a reduced precision. It is often used in machine learning and deep learning workloads.
FP8
8-bit floating-point format. This format offers reduced precision compared to FP16 or FP32, allowing for lower memory usage and faster computations, particularly in AI and machine learning applications.
Filed Under: risc-vvectorintrinsicsperformancefp8