]> git.ipfire.org Git - thirdparty/gcc.git/commit
[committed][RISC-V]Don't reject constants in cmov condition
authorJeff Law <jlaw@ventanamicro.com>
Mon, 7 Aug 2023 20:34:40 +0000 (14:34 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 7 Aug 2023 20:34:40 +0000 (14:34 -0600)
commit18c453f0e633abb9b317947b011ec6e07780fba8
treeffd39e3f9cbbcb97188ace3bd4c99e3ccf2adb5a
parentadfc236c6294d339d30222178160fdea55ab2e87
[committed][RISC-V]Don't reject constants in cmov condition

This test is too aggressive.  Constants have VOIDmode, so we need to let the
through this phase of conditional move support.

Fixes several missed conditional moves with the trunk.

gcc/
* config/riscv/riscv.cc (riscv_expand_conditional_move): Allow
VOIDmode operands to conditional before canonicalization.
gcc/config/riscv/riscv.cc