]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add testcase for unsigned scalar SAT_MUL form 7
authorPan Li <pan2.li@intel.com>
Mon, 20 Oct 2025 13:08:46 +0000 (21:08 +0800)
committerPan Li <pan2.li@intel.com>
Wed, 26 Nov 2025 02:40:02 +0000 (10:40 +0800)
commitbe848078841cbd937ff0ce7bb1564e09d5e2959e
treecb4895562514b245b7ba633cd2925f04e3796b52
parent09ca98e854dca41ae0987b878a1eaab59b31383d
RISC-V: Add testcase for unsigned scalar SAT_MUL form 7

The form 7 of unsigned scalar SAT_MUL has supported from the
previous change.  Thus, add the test cases to make sure it
works well.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/sat/sat_arith.h: Add test helper macros.
* gcc.target/riscv/sat/sat_u_mul-8-u16-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u16-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u16-from-u64.rv32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u16-from-u64.rv64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u32-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u32-from-u64.rv32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u32-from-u64.rv64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u64-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u8-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u8-from-u16.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u8-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u8-from-u64.rv32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-8-u8-from-u64.rv64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u16-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u16-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u16-from-u64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u32-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u32-from-u64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u64-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u16.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u64.c: New test.

Signed-off-by: Pan Li <pan2.li@intel.com>
24 files changed:
gcc/testsuite/gcc.target/riscv/sat/sat_arith.h
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u16-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u16-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u16-from-u64.rv32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u16-from-u64.rv64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u32-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u32-from-u64.rv32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u32-from-u64.rv64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u64-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u8-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u8-from-u16.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u8-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u8-from-u64.rv32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-8-u8-from-u64.rv64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u16-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u16-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u16-from-u64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u32-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u32-from-u64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u64-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u16.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-8-u8-from-u64.c [new file with mode: 0644]