PR target/93995 ICE in patch_jump_insn, at cfgrtl.c:1290 on riscv64-linux-gnu
authorKito Cheng <kito.cheng@sifive.com>
Tue, 3 Mar 2020 06:16:34 +0000 (14:16 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 4 Mar 2020 05:32:59 +0000 (13:32 +0800)
commit8cc59ac591256f8899e137db7633fd7d1a2164ba
treeba2653ff762794365555d89437a9d96e0be7e1f3
parent6b3302da9ef26aa11940f8c0dc92bec19e15c09b
PR target/93995 ICE in patch_jump_insn, at cfgrtl.c:1290 on riscv64-linux-gnu

Last code gen change of LTGT didn't consider the situation of cbranch with LTGT,
branch only support few compare codes.

gcc/ChangeLog

* config/riscv/riscv.c (riscv_emit_float_compare): Using NE to compare
the result of IOR.

gcc/testsuite/ChangeLog

* gcc.dg/pr93995.c: New.
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr93995.c [new file with mode: 0644]