]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
authorwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 03:03:51 +0000 (03:03 +0000)
committerwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 03:03:51 +0000 (03:03 +0000)
* config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
V16QI vector splat case for little endian.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205080 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 7688983f5ca83834edffaaa16004b623e4123514..59c0a8c3fcd880c1b4467ed4d2eec14b4c1319e1 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
+       V16QI vector splat case for little endian.
+
 2013-11-19  Jeff Law  <law@redhat.com>
 
        * tree-ssa-threadedge.c (thread_across_edge): After threading
index 3735f4916360fbdff53b07bc17eeae79280400d3..4c6a529c430cc7661fb7d4f2acba4b7ba3f7744a 100644 (file)
@@ -29812,6 +29812,8 @@ altivec_expand_vec_perm_const (rtx operands[4])
          break;
       if (i == 16)
        {
+          if (!BYTES_BIG_ENDIAN)
+            elt = 15 - elt;
          emit_insn (gen_altivec_vspltb (target, op0, GEN_INT (elt)));
          return true;
        }