[PowerPC] Extend custom lower of vector truncate to handle wider input
authorRoland Froese <froese@ca.ibm.com>
Mon, 24 Aug 2020 19:30:04 +0000 (15:30 -0400)
committerRoland Froese <froese@ca.ibm.com>
Mon, 24 Aug 2020 19:33:43 +0000 (15:33 -0400)
commitb6d7ed469f2f7e70110f6f0d0fa03b99bb818d36
treed16d8b811ae9e299a0cc2655da394d35f0289c92
parent1f6c4d829c2dad147e30dcb0611eb9886dae9155
[PowerPC] Extend custom lower of vector truncate to handle wider input

Current custom lowering of truncate vector handles a source of up to 128 bits, but that only uses one of the two shuffle vector operands. Extend it to use both operands to handle 256 bit sources.

Differential Revision: https://reviews.llvm.org/D68035
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/vec-trunc2.ll [new file with mode: 0644]