diff options
author | Pan Li <pan2.li@intel.com> | 2024-06-18 16:14:23 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2024-06-19 13:01:48 +0800 |
commit | 6315c000c027948fd49d9f5a55aa83808b21b85a (patch) | |
tree | c9da438bc9b9fcccec045905efa382e253ef8c80 /gcc/tree-vectorizer.h | |
parent | 17d0982f425dbdeb528b70d141e70b006f6b9df6 (diff) | |
download | gcc-6315c000c027948fd49d9f5a55aa83808b21b85a.zip gcc-6315c000c027948fd49d9f5a55aa83808b21b85a.tar.gz gcc-6315c000c027948fd49d9f5a55aa83808b21b85a.tar.bz2 |
RISC-V: Add testcases for unsigned .SAT_SUB scalar form 11
After the middle-end support the form 11 of unsigned SAT_SUB and
the RISC-V backend implement the SAT_SUB for vector mode, add
more test case to cover the form 11.
Form 11:
#define DEF_SAT_U_SUB_FMT_11(T) \
T __attribute__((noinline)) \
sat_u_sub_##T##_fmt_11 (T x, T y) \
{ \
T ret; \
bool overflow = __builtin_sub_overflow (x, y, &ret); \
return overflow ? 0 : ret; \
}
Passed the rv64gcv regression tests.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/sat_arith.h: Add helper
macro for testing.
* gcc.target/riscv/sat_u_sub-41.c: New test.
* gcc.target/riscv/sat_u_sub-42.c: New test.
* gcc.target/riscv/sat_u_sub-43.c: New test.
* gcc.target/riscv/sat_u_sub-44.c: New test.
* gcc.target/riscv/sat_u_sub-run-41.c: New test.
* gcc.target/riscv/sat_u_sub-run-42.c: New test.
* gcc.target/riscv/sat_u_sub-run-43.c: New test.
* gcc.target/riscv/sat_u_sub-run-44.c: New test.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions