aboutsummaryrefslogtreecommitdiff
path: root/libcpp/generated_cpp_wcwidth.h
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2024-10-08 11:28:44 +0800
committerPan Li <pan2.li@intel.com>2024-10-08 22:25:43 +0800
commit8b407d5c6940a65d78a544f9c66850e619638171 (patch)
tree65d8b354c657d67f80b14e4119ee0b882d8403f3 /libcpp/generated_cpp_wcwidth.h
parent110ccfa5c88544c5ec85d31b1ed2c2f9dac163fd (diff)
downloadgcc-8b407d5c6940a65d78a544f9c66850e619638171.zip
gcc-8b407d5c6940a65d78a544f9c66850e619638171.tar.gz
gcc-8b407d5c6940a65d78a544f9c66850e619638171.tar.bz2
RISC-V: Add testcases for form 1 of scalar signed SAT_TRUNC
Form 1: #define DEF_SAT_S_TRUNC_FMT_1(WT, NT, NT_MIN, NT_MAX) \ NT __attribute__((noinline)) \ sat_s_trunc_##WT##_to_##NT##_fmt_1 (WT x) \ { \ NT trunc = (NT)x; \ return (WT)NT_MIN <= x && x <= (WT)NT_MAX \ ? trunc \ : x < 0 ? NT_MIN : NT_MAX; \ } 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_arith_data.h: Add test data for SAT_TRUNC. * gcc.target/riscv/sat_s_trunc-1-i16-to-i8.c: New test. * gcc.target/riscv/sat_s_trunc-1-i32-to-i16.c: New test. * gcc.target/riscv/sat_s_trunc-1-i32-to-i8.c: New test. * gcc.target/riscv/sat_s_trunc-1-i64-to-i16.c: New test. * gcc.target/riscv/sat_s_trunc-1-i64-to-i32.c: New test. * gcc.target/riscv/sat_s_trunc-1-i64-to-i8.c: New test. * gcc.target/riscv/sat_s_trunc-run-1-i16-to-i8.c: New test. * gcc.target/riscv/sat_s_trunc-run-1-i32-to-i16.c: New test. * gcc.target/riscv/sat_s_trunc-run-1-i32-to-i8.c: New test. * gcc.target/riscv/sat_s_trunc-run-1-i64-to-i16.c: New test. * gcc.target/riscv/sat_s_trunc-run-1-i64-to-i32.c: New test. * gcc.target/riscv/sat_s_trunc-run-1-i64-to-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