On Fri, Nov 22, 2013 at 10:41 AM, Bill Schmidt
<wschm...@linux.vnet.ibm.com> wrote:
> Hi,
>
> Most of our constant vector permutes use the vperm instructions, but for
> V2DImode and V2DFmode we use xxpermdi.  This patch corrects the
> generated xxpermdi to be correct for little endian, which fixes failures
> of the test cases gcc.dg/torture/vshuf-v2d[fi].c.  Note that we can't
> fix this directly in the pattern for xxpermdi, because that pattern is
> used by the corresponding intrinsic.
>
> Bootstrapped and tested on powerpc64{,le}-unknown-linux-gnu with no
> regressions.  Ok for trunk?
>
> Thanks,
> Bill
>
>
> 2013-11-22  Bill Schmidt  <wschm...@linux.vnet.ibm.com>
>
>         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
>         for little endian.

Okay.

The instrinsic could use a separate, dedicated pattern.

Thanks, David

Reply via email to