This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000] Provide little-endian support for vmrgew and vmrgow
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Feb 2014 17:05:16 -0500
- Subject: Re: [PATCH, rs6000] Provide little-endian support for vmrgew and vmrgow
- Authentication-results: sourceware.org; auth=none
- References: <1392571196 dot 20991 dot 24 dot camel at gnopaine>
On Sun, Feb 16, 2014 at 12:19 PM, Bill Schmidt
<wschmidt@linux.vnet.ibm.com> wrote:
> Hi,
>
> With -mcpu=power8, we see two test cases (gcc.dg/vect/slp-perm-2.c and
> gcc.dg/vect/slp-perm-5.c) regress for powerpc64le-linux. GCC makes use
> of some new Power8 instructions (vmrgew and vmrgow) which need
> adjustment for little endian targets. As with merge-high and merge-low,
> we need to reverse the order of the input vectors and reverse the use of
> the "odd" and "even" instructions (since the change in element ordering
> changes which elements are odd and which are even).
>
> Bootstrapped and tested on powerpc64{,le}-unknown-linux-gnu with no
> regressions. The failing tests now run to completion. Is this ok for
> trunk?
>
> Thanks,
> Bill
>
>
> 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
>
> * config/rs6000/altivec.md (p8_vmrgew): Handle little endian
> targets.
> (p8_vmrgow): Likewise.
Okay.
Thanks, David