[AArch64][v2] Improve comparison with complex immediates followed by branch/cset
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 24 Nov 2015 13:08:56 +0000 (13:08 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 24 Nov 2015 13:08:56 +0000 (13:08 +0000)
commit714e1b3b4f22c4afd2891e956b5c05d7614ab0f9
tree9f39e12c374484b29285b9f51564dca909447dc0
parent9211bbb2782fd934e697bcfd13f4547bfff8be37
[AArch64][v2] Improve comparison with complex immediates followed by branch/cset

* config/aarch64/aarch64.md (*condjump): Rename to...
(condjump): ... This.
(*compare_condjump<mode>): New define_insn_and_split.
(*compare_cstore<mode>_insn): Likewise.
(*cstore<mode>_insn): Rename to...
(cstore<mode>_insn): ... This.
* config/aarch64/iterators.md (CMP): Handle ne code.
* config/aarch64/predicates.md (aarch64_imm24): New predicate.

* gcc.target/aarch64/cmpimm_branch_1.c: New test.
* gcc.target/aarch64/cmpimm_cset_1.c: Likewise.

From-SVN: r230805
gcc/ChangeLog
gcc/config/aarch64/aarch64.md
gcc/config/aarch64/iterators.md
gcc/config/aarch64/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/cmpimm_branch_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/cmpimm_cset_1.c [new file with mode: 0644]