re PR target/25112 ([m68k] Suboptimal equality comparisons with small integers)
authorJeff Law <law@redhat.com>
Fri, 18 Nov 2016 21:52:32 +0000 (14:52 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 18 Nov 2016 21:52:32 +0000 (14:52 -0700)
commit57d7fe867cfc59db8481dfe0f8646f029889ef3f
tree9985d818e7b6cf2ddc5531b04e2a1537e4997fd1
parent0bdc4c1ce9470d4b5b926d2d62ba3ed243775d9e
re PR target/25112 ([m68k] Suboptimal equality comparisons with small integers)

PR target/25112
* config/m68k/m68k.c (moveq feeding equality comparison): New
peepholes.
* config/m68k/predicates.md (addq_subq_operand): New predicate.
(equality_comparison_operator): Likewise.

PR target/25112
* gcc.target/m68k/pr25112: New test.

From-SVN: r242605
gcc/ChangeLog
gcc/config/m68k/m68k.md
gcc/config/m68k/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/m68k/pr25112.c [new file with mode: 0644]