RISC-V: Add test cases for register overlap in vfwmsac.vv
New RISC-V tests cover register group overlap for the vfwmsac.vv instruction.
This commit introduces a comprehensive set of new test cases for the RISC-V Vector extension, specifically targeting the vfwmsac.vv instruction. The tests focus on scenarios involving register group overlap, where destination and source registers may share resources. The tests cover various data types (f16, f32) and vector mask/element counts (m1, m2, m4, mf2, mf4), ensuring the instruction behaves correctly under these potentially complex overlap conditions.
In Details
New test cases are added to gcc/testsuite/gcc.target/riscv/rvv/autovec/group_overlap/ for vfwmsac.vv across different data types (f16, f32) and vector configurations (m1, m2, m4, mf2, mf4). These tests specifically probe register group overlap scenarios, aiming to validate the correct handling of aliasing between destination and source registers for this fused multiply-subtract vector instruction.
- RISC-V
- An open-standard Instruction Set Architecture (ISA) based on Reduced Instruction Set Computing principles.
- vfwmsac.vv
- A RISC-V Vector extension instruction for a fused floating-point multiply-subtract-accumulate operation that operates on two vector registers and writes the result to a third vector register. The '.vv' suffix indicates vector-to-vector operands.
- register group overlap
- A condition in vector processing where the set of registers used for storing the results of an operation intersects with the set of registers used as input operands. This requires careful management by the hardware and compiler.
- f16
- Half-precision floating-point format (16 bits).
- f32
- Single-precision floating-point format (32 bits).
- m1, m2, m4, mf2, mf4
- These likely refer to different vector lengths or configurations within the RISC-V Vector extension, possibly related to the number of elements (m1=1, m2=2, m4=4) or masked elements (mf2, mf4).