]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add testcase for unsigned scalar SAT_MUL form 11
authorPan Li <pan2.li@intel.com>
Mon, 18 May 2026 09:46:05 +0000 (17:46 +0800)
committerPan Li <pan2.li@intel.com>
Wed, 3 Jun 2026 13:04:16 +0000 (21:04 +0800)
commit42989c22cfdbcd4207482bc6476ddb8d00a3424d
tree7b08399480c008a4c5d8a49e5d06344276a7ee66
parent1385e403f29fc65719c022a9e58f01a4876750f5
RISC-V: Add testcase for unsigned scalar SAT_MUL form 11

The form 11 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-12-u16-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u16-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u16-from-u64.rv32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u16-from-u64.rv64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u32-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u32-from-u64.rv32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u32-from-u64.rv64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u64-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u8-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u8-from-u16.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u8-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u8-from-u64.rv32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-12-u8-from-u64.rv64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u16-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u16-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u16-from-u64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u32-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u32-from-u64.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u64-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u8-from-u128.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u8-from-u16.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-u8-from-u32.c: New test.
* gcc.target/riscv/sat/sat_u_mul-run-12-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-12-u16-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u16-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u16-from-u64.rv32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u16-from-u64.rv64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u32-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u32-from-u64.rv32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u32-from-u64.rv64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u64-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u8-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u8-from-u16.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u8-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u8-from-u64.rv32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-12-u8-from-u64.rv64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u16-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u16-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u16-from-u64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u32-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u32-from-u64.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u64-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u8-from-u128.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u8-from-u16.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u8-from-u32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/sat/sat_u_mul-run-12-u8-from-u64.c [new file with mode: 0644]