]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
authorwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Oct 2013 16:23:42 +0000 (16:23 +0000)
committerwschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Oct 2013 16:23:42 +0000 (16:23 +0000)
* config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.

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

gcc/ChangeLog
gcc/config/rs6000/altivec.md

index 26b02e8d1acb2a600523bcccf0551fc798e1bf1c..31580a41e8b7d98072bb4f3798bc96ab4634c1d7 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
+
 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/58775
index 93aaa12076b764cf44a24fc75dc273fc9395dbfb..37c59980ecfb896e7780e6363b744278551dccd4 100644 (file)
    emit_insn (gen_altivec_vmrghw (high, even, odd));
    emit_insn (gen_altivec_vmrglw (low, even, odd));
 
-   emit_insn (gen_altivec_vpkuwum (operands[0], high, low));
+   if (BYTES_BIG_ENDIAN)
+     emit_insn (gen_altivec_vpkuwum (operands[0], high, low));
+   else
+     emit_insn (gen_altivec_vpkuwum (operands[0], low, high));
 
    DONE;
 }")