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

RISC-V: Add more test cases for vector multiply-accumulate instructions

New RISC-V test cases verify vector multiply-accumulate instructions with specific register overlap conditions.

This commit expands the test suite for the RISC-V Vector extension by adding new test cases for the vfw{macc,msac}.vv instructions. These tests specifically target scenarios involving register overlap, ensuring correct behavior when the destination and source registers for these vector operations might overlap. The tests are designed to be used when the csrr instruction is not part of the assembly check and overlap is enabled.

In Details

This patch adds test cases to gcc/testsuite/gcc.target/riscv/rvv/base/ for the vfw{macc,msac}.vv instructions. It specifically targets scenarios where csrr is not enabled in the check and register overlap is active, ensuring correct functionality under these conditions within the RISC-V Vector extension (RVV).

For Context
RISC-V
An open-standard Instruction Set Architecture (ISA) based on Reduced Instruction Set Computing principles.
Vector extension (RVV)
A part of the RISC-V ISA that provides support for Single Instruction, Multiple Data (SIMD) operations, allowing a single instruction to perform operations on multiple data elements simultaneously.
vfw{macc,msac}.vv
RISC-V Vector extension instructions for fused multiply-accumulate and multiply-subtract operations on floating-point vectors. The '.vv' suffix indicates vector-to-vector operation.
register overlap
A situation in instruction scheduling or vector processing where the destination register for an operation is the same as, or overlaps with, one of the source registers. This can require special handling by the hardware or compiler.
csrr
A RISC-V instruction that reads the value of a control and status register (CSR).
Filed Under: risc-vvectorrvvtesting