aboutsummaryrefslogtreecommitdiff
path: root/libcpp/generated_cpp_wcwidth.h
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2024-10-03 16:15:56 +0800
committerPan Li <pan2.li@intel.com>2024-10-08 19:05:09 +0800
commitaac2bc48014dd418a5c9dc3a7c962c0f0bb48312 (patch)
tree29233799a88b838f6e8483cfb2b3b5f423e2eb8b /libcpp/generated_cpp_wcwidth.h
parente21a8d9ec63464b2c8301f882a3a04ac59b01fcd (diff)
downloadgcc-aac2bc48014dd418a5c9dc3a7c962c0f0bb48312.zip
gcc-aac2bc48014dd418a5c9dc3a7c962c0f0bb48312.tar.gz
gcc-aac2bc48014dd418a5c9dc3a7c962c0f0bb48312.tar.bz2
RISC-V: Add testcases for form 3 of scalar signed SAT_SUB
Form 3: #define DEF_SAT_S_SUB_FMT_3(T, UT, MIN, MAX) \ T __attribute__((noinline)) \ sat_s_sub_##T##_fmt_3 (T x, T y) \ { \ T minus; \ bool overflow = __builtin_sub_overflow (x, y, &minus); \ return overflow ? x < 0 ? MIN : MAX : minus; \ } The below test are passed for this patch. * The rv64gcv fully regression test. It is test only patch and obvious up to a point, will commit it directly if no comments in next 48H. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat_arith.h: Add test helper macros. * gcc.target/riscv/sat_s_sub-3-i16.c: New test. * gcc.target/riscv/sat_s_sub-3-i32.c: New test. * gcc.target/riscv/sat_s_sub-3-i64.c: New test. * gcc.target/riscv/sat_s_sub-3-i8.c: New test. * gcc.target/riscv/sat_s_sub-run-3-i16.c: New test. * gcc.target/riscv/sat_s_sub-run-3-i32.c: New test. * gcc.target/riscv/sat_s_sub-run-3-i64.c: New test. * gcc.target/riscv/sat_s_sub-run-3-i8.c: New test. Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'libcpp/generated_cpp_wcwidth.h')
0 files changed, 0 insertions, 0 deletions