[AArch64] Factor out ptrue predicate creation
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 18 Jun 2019 14:49:28 +0000 (14:49 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 18 Jun 2019 14:49:28 +0000 (14:49 +0000)
commit16de3637c4df37e0203b3ad52b238887e6ca38fc
treef95a633b9adabcc19b24295271a88a743a6142d0
parent32cf949cec180799d3fb14d405772ea35b5aafd3
[AArch64] Factor out ptrue predicate creation

This is the first step to canonicalising predicate constants so that
they can be reused between modes.

2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
* config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
(aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
(aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
(aarch64_expand_sve_vec_cmp_int): Use it.
(aarch64_expand_sve_vec_cmp_float): Likewise.
* config/aarch64/aarch64-sve.md: Likewise throughout.

From-SVN: r272424
gcc/ChangeLog
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64-sve.md
gcc/config/aarch64/aarch64.c