[AArch64] Use SUBS for parallel subtraction and comparison with immediate
commit25236514370ae7e0881c57529a83d5ce7745b0f5
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2017 08:49:59 +0000 (5 08:49 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2017 08:49:59 +0000 (5 08:49 +0000)
tree9561d1b7f733a9bfea072d79b805437a6d5f2a96
parent67bc253df2fc2258d5d0cbe166f5f492b782fddd
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248870 138bc75d-0d04-0410-961f-82ee72b054a4
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]