Additional fixes for bug 15155.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 20 Feb 2013 20:41:42 +0000 (20:41 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 20 Feb 2013 20:41:42 +0000 (20:41 +0000)
commitabc402886e407e21d845cccc15723cffd6e2dc20
treefa874ad96d4341f8bed0efa315a1e52ad433756c
parent8a3a1deed8e7b18b18dea73cb4245a8ef7c46a4f
Additional fixes for bug 15155.

This handles the cases where the 6-bit splat element is odd, converting
to a three-instruction sequence to add or subtract two splats.  With this
fix, the XFAIL in test/CodeGen/PowerPC/vec_constants.ll is removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175663 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/vaddsplat.ll
test/CodeGen/PowerPC/vec_constants.ll