altivec.md (mulv8hi3): Adjust for little endian.

2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.

From-SVN: r203980
This commit is contained in:
Bill Schmidt 2013-10-23 16:23:42 +00:00 committed by William Schmidt
parent 5e40da4f64
commit 24d2e5ebfd
2 changed files with 8 additions and 1 deletions

View 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

View File

@ -681,7 +681,10 @@
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;
}")