[PowerPC] Swap arguments and adjust shift count for vsldoi on little endian
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 5 Aug 2014 20:47:25 +0000 (20:47 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 5 Aug 2014 20:47:25 +0000 (20:47 +0000)
commitbb639a1f96bb72b424a7a2060feab02f095518d8
tree5e74098ac3451e9bd3745cffe87a3f754cdcd477
parent998edc61873758d5587cbf0a83366a2294f6f284
[PowerPC] Swap arguments and adjust shift count for vsldoi on little endian

Commits r213915 and r214718 fix recognition of shuffle masks for vmrg*
and vpku*um instructions for a little-endian target, by swapping the
input arguments.  The vsldoi instruction requires similar treatment,
and also needs its shift count adjusted for little endian.

Reviewed by Ulrich Weigand.

This is a bug fix candidate for release 3.5 (and hopefully the last of
those for PowerPC).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/PowerPC/PPCInstrAltivec.td
test/CodeGen/PowerPC/vec_shuffle_le.ll