diff options
author | Pan Li <pan2.li@intel.com> | 2024-05-29 14:15:45 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2024-06-07 08:53:13 +0800 |
commit | a737c2bf5212822b8225f65efa643a968e5a7c78 (patch) | |
tree | fe0649570156b8eb60adddac0a2f5e64be432d25 /gcc/tree-vect-loop.cc | |
parent | 6af18e8c955787020b1c4a1dccad6c2577378e9b (diff) | |
download | gcc-a737c2bf5212822b8225f65efa643a968e5a7c78.zip gcc-a737c2bf5212822b8225f65efa643a968e5a7c78.tar.gz gcc-a737c2bf5212822b8225f65efa643a968e5a7c78.tar.bz2 |
RISC-V: Add testcases for scalar unsigned SAT_ADD form 1
After the middle-end support the form 1 of unsigned SAT_ADD and
the RISC-V backend implement the scalar .SAT_ADD, add more test
case to cover the form 1 of unsigned .SAT_ADD.
Form 1:
#define SAT_ADD_U_1(T) \
T sat_add_u_1_##T(T x, T y) \
{ \
return (T)(x + y) >= x ? (x + y) : -1; \
}
Passed the riscv fully regression tests.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/sat_arith.h: Add helper macro for form 1.
* gcc.target/riscv/sat_u_add-5.c: New test.
* gcc.target/riscv/sat_u_add-6.c: New test.
* gcc.target/riscv/sat_u_add-7.c: New test.
* gcc.target/riscv/sat_u_add-8.c: New test.
* gcc.target/riscv/sat_u_add-run-5.c: New test.
* gcc.target/riscv/sat_u_add-run-6.c: New test.
* gcc.target/riscv/sat_u_add-run-7.c: New test.
* gcc.target/riscv/sat_u_add-run-8.c: New test.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions