[AArch64] Use SUBS for parallel subtraction and comparison with immediate
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 5 Jun 2017 08:49:59 +0000 (08:49 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 5 Jun 2017 08:49:59 +0000 (08:49 +0000)
commit279dc4b464e3cc207b1729d8a392240430c57f42
tree9561d1b7f733a9bfea072d79b805437a6d5f2a96
parente49d8b68a2330971c75ba7ff625c770e6f2ce2b9
[AArch64] Use SUBS for parallel subtraction and comparison with immediate

* config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
(peephole2): New peephole2 to emit the above.
* config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.

* gcc.target/aarch64/subs_compare_2.c: New test.

From-SVN: r248870
gcc/ChangeLog
gcc/config/aarch64/aarch64.md
gcc/config/aarch64/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/subs_compare_2.c [new file with mode: 0644]