RISC-V: Clean up the pr106602.c testcase
authorPalmer Dabbelt <palmer@rivosinc.com>
Mon, 17 Apr 2023 18:20:42 +0000 (11:20 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 19 Apr 2023 02:40:08 +0000 (19:40 -0700)
commita252c73b1f2b920d8a2ff2e8ca59989e06652fbb
tree7ea1c5fbe777e985cca5281a0eb6b8c8d2554c6c
parent9df40c4b499abb325dbc1bae3af1a3062b1e07fb
RISC-V: Clean up the pr106602.c testcase

The test case that was added is rv64i-specific, as there's better ways
to generate this code on rv32i (where the long/int cast is a NOP) and on
rv64i_zba (where we have word shifts).  This renames the original test
case and adds two more for those targets.

gcc/testsuite/ChangeLog:
PR target/106602
* gcc.target/riscv/pr106602.c: Moved to...
* gcc.target/riscv/pr106602-rv64i.c: ...here.
* gcc.target/riscv/pr106602-rv32i.c: New test.
* gcc.target/riscv/pr106602-rv64i_zba.c: New test.

(cherry picked from commit 8c010f6fe5ebe80d2e054b31e04ae0e9f12ae368)
gcc/testsuite/gcc.target/riscv/pr106602-rv32i.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/pr106602-rv64i.c [moved from gcc/testsuite/gcc.target/riscv/pr106602.c with 88% similarity]
gcc/testsuite/gcc.target/riscv/pr106602-rv64i_zba.c [new file with mode: 0644]