RISC-V: Adjust vwadd[u].wv m4 test cases for reg overlap
RISC-V vector test cases adjusted for register allocation changes.
This commit adjusts RISC-V vwadd[u].wv test cases for m4 configurations. Following the application of a Wn4 constraint to the vs2 operand, register allocation behavior changed under high register pressure. The changes ensure the assembly checks in these test cases correctly reflect the new allocation, maintaining consistency with vfwadd.wv behavior regarding vs1 register overlap.
In Details
This commit refines assembly checks for RISC-V vwadd[u].wv test cases, specifically for m4 configurations. The Wn4 constraint applied to operand 3 (vs2) alters register allocation dynamics, potentially causing vs1 to overlap with vd or vs2 register groups differently. The adjustments ensure the emitted assembly accurately reflects these changes, particularly under register pressure, maintaining behavioral parity with vfwadd.wv.
- RISC-V
- An open-standard instruction set architecture (ISA) based on Reduced Instruction Set Computer principles. GCC supports various RISC-V profiles and extensions.
- vector extension
- A set of instructions that operate on multiple data elements in parallel, often used for high-performance computing and signal processing. GCC's support for vector extensions allows for SIMD (Single Instruction, Multiple Data) operations.
- vwadd.wv
- A RISC-V vector instruction that performs a widened add operation with vector elements. The '.wv' suffix indicates a 'widening' operation where the result element width is larger than the source element width.
- vwaddu.wv
- Similar to
vwadd.wv, but specifically for unsigned integer addition. - m4
- In the context of RISC-V vector extensions, 'm4' likely refers to a configuration where the vector length is such that it holds 4 elements of a certain data type, or a specific mask/mode related to element processing.
- vs1
- The first source vector register operand for a RISC-V vector instruction.
- vs2
- The second source vector register operand for a RISC-V vector instruction.
- vd
- The destination vector register for a RISC-V vector instruction.
- Wn4 constraint
- A constraint in RISC-V vector assembly that specifies a requirement for a register, often related to its EEW or its alignment within a larger register group. 'Wn4' likely refers to a constraint on a register that is 4 elements wide.