This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64_be] Fix vec_select hi/lo mask confusions.
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: James Greenhalgh <james dot greenhalgh at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 31 Jul 2014 14:34:53 +0100
- Subject: Re: [AArch64_be] Fix vec_select hi/lo mask confusions.
- Authentication-results: sourceware.org; auth=none
- References: <1406715057-23501-1-git-send-email-james dot greenhalgh at arm dot com>
On 30 July 2014 11:10, James Greenhalgh <james.greenhalgh@arm.com> wrote:
> 2014-07-30 James Greenhalgh <james.greenhalgh@arm.com>
>
> * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
> the generated mask based on BYTES_BIG_ENDIAN.
> (aarch64_simd_check_vect_par_cnst_half): New.
> * config/aarch64/aarch64-protos.h
> (aarch64_simd_check_vect_par_cnst_half): New.
> * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
> the check out to aarch64_simd_check_vect_par_cnst_half.
> (vect_par_cnst_lo_half): Likewise.
> * config/aarch64/aarch64-simd.md
> (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
> (move_hi_quad_<mode>): Always generate a low mask.
OK with me /Marcus