re PR target/89506 (ICE: in decompose, at rtl.h:2266 with -Og -g)
authorJakub Jelinek <jakub@redhat.com>
Sat, 2 Mar 2019 08:05:10 +0000 (09:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 2 Mar 2019 08:05:10 +0000 (09:05 +0100)
commit73ba6c712005892fbddb3e4dd7160d218e1b8c50
tree23f55f2090bbf8f16d7a9866aed7bd3445092c07
parent64ef1e96ff72cbf856d1fc8c2eb6e78afd94d86a
re PR target/89506 (ICE: in decompose, at rtl.h:2266 with -Og -g)

PR target/89506
* config/arm/arm.md (cmpsi2_addneg): Use
trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
If operands[2] is 0 or INT_MIN, force use of subs.
(*compare_scc splitter): Use gen_int_mode.
(*negscc): Likewise.
* config/arm/thumb2.md (*thumb2_negscc): Likewise.

* gcc.dg/pr89506.c: New test.

From-SVN: r269339
gcc/ChangeLog
gcc/config/arm/arm.md
gcc/config/arm/thumb2.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89506.c [new file with mode: 0644]