This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, PowerPC] Fix unaligned Altivec load/stores in LE mode


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]