[AArch64] Add vector pattern for __builtin_ctz
authorJiong Wang <jiong.wang@arm.com>
Fri, 21 Nov 2014 16:56:21 +0000 (16:56 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Fri, 21 Nov 2014 16:56:21 +0000 (16:56 +0000)
commit5e32e83b6e5e7cb6a01b57ad70f36d0b937106ed
treeca2c3409b6bd33675545ecdcd44e19a830238f28
parenta699d67255c06d0efdca1593810b01cf3bfdd99b
[AArch64] Add vector pattern for __builtin_ctz

  gcc/
    * config/aarch64/iterators.md (VS): New mode iterator.
    (vsi2qi): New mode attribute.
    (VSI2QI): Likewise.
    * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
    * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
    * config/aarch64/aarch64-builtins.c
    (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.

  gcc/testsuite/
    * gcc.target/aarch64/vect_ctz_1.c: New testcase.

From-SVN: r217938
gcc/ChangeLog
gcc/config/aarch64/aarch64-builtins.c
gcc/config/aarch64/aarch64-simd-builtins.def
gcc/config/aarch64/aarch64-simd.md
gcc/config/aarch64/iterators.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/vect_ctz_1.c [new file with mode: 0644]