aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-dump.h
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2024-06-14 10:03:15 +0800
committerPan Li <pan2.li@intel.com>2024-06-14 22:07:35 +0800
commit40609350e77d3fd4fac9787ff5066d723c7a6329 (patch)
treef0691368d082fba9a6e81d61fe5e43e0e13a4e03 /gcc/tree-dump.h
parent6d73bb157a7ddc8fe42fc2cb31f3e2371162a228 (diff)
downloadgcc-40609350e77d3fd4fac9787ff5066d723c7a6329.zip
gcc-40609350e77d3fd4fac9787ff5066d723c7a6329.tar.gz
gcc-40609350e77d3fd4fac9787ff5066d723c7a6329.tar.bz2
RISC-V: Add testcases for scalar unsigned SAT_SUB form 9
After the middle-end support the form 9 of unsigned SAT_SUB and the RISC-V backend implement the scalar .SAT_SUB, add more test case to cover the form 9 of unsigned .SAT_SUB. Form 9: #define SAT_SUB_U_9(T) \ T sat_sub_u_9_##T (T x, T y) \ { \ T ret; \ T overflow = __builtin_sub_overflow (x, y, &ret); \ return overflow ? 0 : ret; \ } 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-33.c: New test. * gcc.target/riscv/sat_u_sub-34.c: New test. * gcc.target/riscv/sat_u_sub-35.c: New test. * gcc.target/riscv/sat_u_sub-36.c: New test. * gcc.target/riscv/sat_u_sub-run-33.c: New test. * gcc.target/riscv/sat_u_sub-run-34.c: New test. * gcc.target/riscv/sat_u_sub-run-35.c: New test. * gcc.target/riscv/sat_u_sub-run-36.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