diff options
author | Pan Li <pan2.li@intel.com> | 2024-06-14 09:49:22 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2024-06-14 22:07:23 +0800 |
commit | 1d37b81cbfb4b5ead7112855ef6c215ad1042456 (patch) | |
tree | 1665c50820e204b81c07acfb963cd49b69cc421a /gcc/tree-dump.h | |
parent | b781fb4fe19f00aef886b21acf57b96d52545a0c (diff) | |
download | gcc-1d37b81cbfb4b5ead7112855ef6c215ad1042456.zip gcc-1d37b81cbfb4b5ead7112855ef6c215ad1042456.tar.gz gcc-1d37b81cbfb4b5ead7112855ef6c215ad1042456.tar.bz2 |
RISC-V: Add testcases for scalar unsigned SAT_SUB form 7
After the middle-end support the form 7 of unsigned SAT_SUB and
the RISC-V backend implement the scalar .SAT_SUB, add more test
case to cover the form 7 of unsigned .SAT_SUB.
Form 7:
#define SAT_SUB_U_7(T) \
T sat_sub_u_7_##T (T x, T y) \
{ \
T ret; \
T overflow = __builtin_sub_overflow (x, y, &ret); \
return ret & (T)(overflow - 1); \
}
Passed the rv64gcv fully regression test.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/sat_arith.h: Add helper macro for test.
* gcc.target/riscv/sat_u_sub-25.c: New test.
* gcc.target/riscv/sat_u_sub-26.c: New test.
* gcc.target/riscv/sat_u_sub-27.c: New test.
* gcc.target/riscv/sat_u_sub-28.c: New test.
* gcc.target/riscv/sat_u_sub-run-25.c: New test.
* gcc.target/riscv/sat_u_sub-run-26.c: New test.
* gcc.target/riscv/sat_u_sub-run-27.c: New test.
* gcc.target/riscv/sat_u_sub-run-28.c: New test.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc/tree-dump.h')
0 files changed, 0 insertions, 0 deletions