This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, PowerPC] Fix unaligned Altivec load/stores in LE mode
- 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: Wed, 24 Jul 2013 08:49:45 -0400
- Subject: Re: [PATCH, PowerPC] Fix unaligned Altivec load/stores in LE mode
- References: <1374635951 dot 3633 dot 132 dot camel at gnopaine>
On Tue, Jul 23, 2013 at 11:19 PM, Bill Schmidt
<wschmidt@linux.vnet.ibm.com> wrote:
> In order to use vperm for aligning loads and stores in little endian
> mode, we need to reverse the order of the input operands and use lvsl
> instead of lvsr. This corrects 32 regressions in the test suite when
> run in LE mode.
>
> Bootstrapped and tested on powerpc64-unknown-linux-gnu in BE mode with
> no new regressions. Is this ok for trunk?
>
> Patch by Anton Blanchard.
>
> Thanks,
> Bill
>
>
> 2013-07-23 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
> Anton Blanchard <anton@au1.ibm.com>
>
> * vector.md (vec_realign_load_<mode>): Reorder input operands to
> vperm for little endian.
> * rs6000.c (rs6000_expand_builtin): Use lvsr instead of lvsl to
> create the control mask for a vperm for little endian.
Okay.
Thanks, David