[PATCH] [target/25114] Improve comparisons against some small integers for m68k
authorJeff Law <law@redhat.com>
Wed, 20 Jan 2016 07:54:26 +0000 (00:54 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 20 Jan 2016 07:54:26 +0000 (00:54 -0700)
commitbcff0913882cc6e70f90be3d8448ec0186d21abc
tree5d9f7b573fc95196488974f89850d1834ebafc87
parenta3f69631af2a64405722a526650b96fbcf9a9373
[PATCH] [target/25114] Improve comparisons against some small integers for m68k

* config/m68k/predicates.md (pow2_m1_operand): New predicate
extracted from ...
(reg_or_pow2_m1_operand): Call pow2_m1_operand.
(pc_or_label_operand): New predicate.
* config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
tests for small integers that are 2^n - 1.

* gcc.target/m68k/pr25114.c: New test.

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