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, rs6000] Correct vector permute for little endian


On Sun, Oct 6, 2013 at 1:32 PM, Bill Schmidt
<wschmidt@linux.vnet.ibm.com> wrote:
> This patch corrects the expansion of vec_perm_constv16qi for
> powerpc64le.  The explanation of the problem with a detailed example
> appears in the commentary, as this corrects for what I found to be
> surprising behavior in the implementation of the vperm instruction, and
> I don't want any of us to spend time figuring that out again.  (We may
> want to add a programming note in the next version of the ISA.)
>
> This corrects 18 failing tests in the test suite for the powerpc64le
> target, without affecting the big-endian targets.  Bootstrapped and
> tested with no new regressions on powerpc64le-unknown-linux-gnu and
> powerpc64-unknown-linux-gnu.  Ok for trunk?
>
> Thanks,
> Bill
>
>
> 2013-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
>
>         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
>         (altivec_expand_vec_perm_const): Call it.

Okay.

Thanks, David


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