]> gcc.gnu.org Git - gcc.git/commit
[AArch64] PR rtl-optimization/68796 Add compare-of-zero_extract pattern
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 18 Dec 2015 09:58:07 +0000 (09:58 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 18 Dec 2015 09:58:07 +0000 (09:58 +0000)
commit7325d85abe7451e213f3aafea6938f9810c7f277
tree1e1e4a54f101c13a2881b2f56cec68b4866f8073
parent916c0f6a41f0ff905cbc9d756212072deed5d202
[AArch64] PR rtl-optimization/68796 Add compare-of-zero_extract pattern

PR rtl-optimization/68796
* config/aarch64/aarch64.md (*and<mode>3nr_compare0_zextract):
New pattern.
* config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle
ZERO_EXTRACT comparison with zero.
(aarch64_mask_from_zextract_ops): New function.
* config/aarch64/aarch64-protos.h (aarch64_mask_from_zextract_ops):
New prototype.

* gcc.target/aarch64/tst_3.c: New test.
* gcc.target/aarch64/tst_4.c: Likewise.

From-SVN: r231810
gcc/ChangeLog
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/tst_3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/tst_4.c [new file with mode: 0644]
This page took 0.059308 seconds and 5 git commands to generate.