[AArch64] Add ANDS pattern for CMP+ZERO_EXTEND
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 1 Sep 2016 09:03:52 +0000 (09:03 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 1 Sep 2016 09:03:52 +0000 (09:03 +0000)
commitb06335f93e9bf0ba865ee3133032648b4d3ca223
tree4f566c0ac73460f45e0e88ba28c6e2cc30ddaeec
parent3409207a446054802c83e41cd5eb609816a00278
[AArch64] Add ANDS pattern for CMP+ZERO_EXTEND

* config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
* config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
for comparisons of integer ZERO_EXTEND against zero.

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

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