summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-09 22:00:52 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-09 22:00:52 +0000
commit8e38e862667e89ac928b8f5e7ce0a91c84fae4bc (patch)
tree70eeb1b7619d563cba32e7f94062f45365be0ed0 /unittests
parentf4a702c079674120bbc95c3474602334274c6046 (diff)
downloadllvm-8e38e862667e89ac928b8f5e7ce0a91c84fae4bc.tar.gz
llvm-8e38e862667e89ac928b8f5e7ce0a91c84fae4bc.tar.bz2
llvm-8e38e862667e89ac928b8f5e7ce0a91c84fae4bc.tar.xz
[PPC64LE] Generate correct code for unaligned little-endian vector loads
The code in PPCTargetLowering::PerformDAGCombine() that handles unaligned Altivec vector loads generates a lvsl followed by a vperm. As we've seen in numerous other places, the vperm instruction has a big-endian bias, and this is fixed for little endian by complementing the permute control vector and swapping the input operands. In this case the lvsl is providing the permute control vector. Rather than generating an lvsl and a complement operation, it is sufficient to generate an lvsr instruction instead. Thus for LE code generation we will generate an lvsr rather than an lvsl, and swap the other input arguments on the vperm. The existing test/CodeGen/PowerPC/vec_misalign.ll is updated to test the code generation for PPC64 and PPC64LE, in addition to the existing PPC32/G5 testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
0 files changed, 0 insertions, 0 deletions