[PATCH, rs6000] Fix vsx_unpack expansions for endianness

David Edelsohn dje.gcc@gmail.com
Wed Oct 16 14:46:00 GMT 2013


On Wed, Oct 16, 2013 at 8:22 AM, Bill Schmidt
<wschmidt@linux.vnet.ibm.com> wrote:
> For vector unpack operations, the meaning of "high" and "low" is
> reversed for little endian.
>
> Bootstrapped and tested on powerpc64{,le}-unknown-linux-gnu with no
> regressions.  This fixes one test case for little endian
> (gcc.dg/vect/vect-122.c).
>
> Ok for trunk?
>
> Thanks,
> Bill
>
>
> 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
>
>         * gcc/config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
>         endianness.
>         (vec_unpacks_lo_v4sf): Likewise.
>         (vec_unpacks_float_hi_v4si): Likewise.
>         (vec_unpacks_float_lo_v4si): Likewise.
>         (vec_unpacku_float_hi_v4si): Likewise.
>         (vec_unpacku_float_lo_v4si): Likewise.

Okay.

Thanks, David



More information about the Gcc-patches mailing list