]> gcc.gnu.org Git - gcc.git/commit
RISC-V/testsuite: Add branched cases for FP cond-move operations
authorMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:25 +0000 (01:18 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:25 +0000 (01:18 +0000)
commitbc40013cd6074f506f488c4717871ebcb7bb9087
treeefcddf48e9eec4d8982f405826541dc64b97f5c8
parent28d6d6bfbde2b08ce5fde5a2f3129908881b1a29
RISC-V/testsuite: Add branched cases for FP cond-move operations

Verify, for Ventana and Zicond targets and the ordered floating-point
conditional-move operations that already work as expected, that
if-conversion does *not* trigger at `-mbranch-cost=2' setting, which
makes original branched code sequences cheaper than their branchless
equivalents if-conversion would emit.  Cover all ordered floating-point
relational operations to make sure no corner case escapes.

gcc/testsuite/
* gcc.target/riscv/movdibfge-ventana.c: New test.
* gcc.target/riscv/movdibfge-zicond.c: New test.
* gcc.target/riscv/movdibfgt-ventana.c: New test.
* gcc.target/riscv/movdibfgt-zicond.c: New test.
* gcc.target/riscv/movdibfle-ventana.c: New test.
* gcc.target/riscv/movdibfle-zicond.c: New test.
* gcc.target/riscv/movdibflt-ventana.c: New test.
* gcc.target/riscv/movdibflt-zicond.c: New test.
* gcc.target/riscv/movdibfne-ventana.c: New test.
* gcc.target/riscv/movdibfne-zicond.c: New test.
* gcc.target/riscv/movsibfge-ventana.c: New test.
* gcc.target/riscv/movsibfge-zicond.c: New test.
* gcc.target/riscv/movsibfgt-ventana.c: New test.
* gcc.target/riscv/movsibfgt-zicond.c: New test.
* gcc.target/riscv/movsibfle-ventana.c: New test.
* gcc.target/riscv/movsibfle-zicond.c: New test.
* gcc.target/riscv/movsibflt-ventana.c: New test.
* gcc.target/riscv/movsibflt-zicond.c: New test.
* gcc.target/riscv/movsibfne-ventana.c: New test.
* gcc.target/riscv/movsibfne-zicond.c: New test.
20 files changed:
gcc/testsuite/gcc.target/riscv/movdibfge-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibfge-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibfgt-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibfgt-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibfle-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibfle-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibflt-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibflt-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibfne-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movdibfne-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfge-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfge-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfgt-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfgt-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfle-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfle-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibflt-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibflt-zicond.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfne-ventana.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/movsibfne-zicond.c [new file with mode: 0644]
This page took 0.061862 seconds and 5 git commands to generate.