[PowerPC] Provide patterns for permuted scalar to vector for pre-P8
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 29 Dec 2020 12:32:45 +0000 (06:32 -0600)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 29 Dec 2020 12:49:25 +0000 (06:49 -0600)
commit7486de1b2eced2cccc7b0b95598e9ab45039d700
tree4518982d1cf6526774cb90563f26dc545a4cfab0
parentaebb4a60522615ca4fd542e8ece8df1e4f42d657
[PowerPC] Provide patterns for permuted scalar to vector for pre-P8

We will emit these permuted nodes on all VSX little endian subtargets
but don't have the patterns available to match them on subtargets
that don't have direct moves.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=47916
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
llvm/test/CodeGen/PowerPC/canonical-merge-shuffles.ll
llvm/test/CodeGen/PowerPC/load-and-splat.ll
llvm/test/CodeGen/PowerPC/pr47916.ll [new file with mode: 0644]