Add RISC-V test cases for scalar unsigned SAT form 9.
This commit adds test cases for scalar unsigned SAT form 9 in RISC-V to improve code reliability.
New test cases for scalar unsigned SAT form 9 have been added to the RISC-V architecture. The added tests validate existing support for form 9. These tests will help ensure the reliability of compiled code by increasing coverage of the RISC-V instruction set.
In Details
This commit introduces new test cases for RISC-V scalar unsigned SAT form 9, extending the existing test suite in gcc.target/riscv/sat/. Scalar SAT instructions perform arithmetic operations with saturation, preventing results from overflowing. The tests cover various data types (u16, u32, u64, u8) and scenarios. While seemingly localized, changes to the test suite can reveal subtle issues in code generation or instruction selection.
For Context
This commit adds new tests for the RISC-V architecture, specifically for operations involving scalar unsigned saturated arithmetic. RISC-V is a modern open-source instruction set architecture (ISA) used in various processors. Saturated arithmetic prevents overflow by capping results at a maximum or minimum value, instead of wrapping around. These tests validate that the compiler correctly generates code for these operations across different data sizes, ensuring more robust software.