]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Also allow FP conditions in `riscv_expand_conditional_move'
authorMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:29 +0000 (01:18 +0000)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 22 Nov 2023 05:05:17 +0000 (22:05 -0700)
commit056096987325f08eca0b79d015a82534d8b763e2
tree7fc3723602c18b9e91db693466ddce625ba1e74a
parent047fc0a129d2b6b99fdde296e05398915408fcf3
RISC-V: Also allow FP conditions in `riscv_expand_conditional_move'

In `riscv_expand_conditional_move' we only let integer conditions
through at the moment, even though code has already been prepared to
handle floating-point conditions as well.

Lift this restriction and only bail out if a non-word-mode integer
condition has been requested, as we cannot handle this specific case
owing to machine instruction set restriction.  We already take care of
the non-integer, non-floating-point case later on.

gcc/
* config/riscv/riscv.cc (riscv_expand_conditional_move): Don't
bail out in floating-point conditions.

(cherry picked from commit 37ff43c27344784caed28778fb847244a49644bd)
gcc/config/riscv/riscv.cc
This page took 0.054184 seconds and 5 git commands to generate.