]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V/testsuite: Add branchless cases for GEU and LEU cond-move operations
authorMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:26 +0000 (01:18 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:26 +0000 (01:18 +0000)
commit3a746501f6baf88f1a1e55d94a762a737b9daf6a
treef654d18c70193b7a7934247c1db80d2b4f10b0e3
parentcfa6536f29d19300d0687f4c9ae07800278ad31f
RISC-V/testsuite: Add branchless cases for GEU and LEU cond-move operations

Verify, for Ventana and Zicond targets and the GEU and LEU
conditional-move operations, that if-conversion triggers via
`noce_try_cmove' at `-mbranch-cost=4' setting, which makes branchless
code sequences produced by if-conversion cheaper than their original
branched equivalents, and that extraneous instructions such as SEQZ,
etc. are not present in output.

gcc/testsuite/
* gcc.target/riscv/movdigtu-ventana.c: New test.
* gcc.target/riscv/movdigtu-zicond.c: New test.
* gcc.target/riscv/movdiltu-ventana.c: New test.
* gcc.target/riscv/movdiltu-zicond.c: New test.
* gcc.target/riscv/movsigtu-ventana.c: New test.
* gcc.target/riscv/movsigtu-zicond.c: New test.
* gcc.target/riscv/movsiltu-ventana.c: New test.
* gcc.target/riscv/movsiltu-zicond.c: New test.
gcc/testsuite/gcc.target/riscv/movdigtu-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdigtu-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdiltu-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdiltu-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsigtu-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsigtu-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsiltu-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsiltu-zicond.c [new file with mode: 0644]