[Vectorizer]Make reductions-via-shifts and vec_shr_optab endianness-neutral
authorAlan Lawrence <alan.lawrence@arm.com>
Fri, 14 Nov 2014 10:48:34 +0000 (10:48 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Fri, 14 Nov 2014 10:48:34 +0000 (10:48 +0000)
commit729ff76e2b7931d1106667e7f27001c5c0f624b8
tree11269bbc5bc8d4449b8484d7fccf11158c77490f
parent8261494856f9478e0393d5bd9be26961d16f266f
[Vectorizer]Make reductions-via-shifts and vec_shr_optab endianness-neutral

        * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
        BYTES_BIG_ENDIAN.
        * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
        vect_create_epilog_for_reduction): Likewise.
        * doc/md.texi (vec_shr_m): Clarify direction of shifting.

From-SVN: r217550
gcc/ChangeLog
gcc/doc/md.texi
gcc/optabs.c
gcc/tree-vect-loop.c