Use new vector insert half-word and byte instructions when we see insertelement on...
authorGraham Yiu <gyiu@ca.ibm.com>
Tue, 7 Nov 2017 20:55:43 +0000 (20:55 +0000)
committerGraham Yiu <gyiu@ca.ibm.com>
Tue, 7 Nov 2017 20:55:43 +0000 (20:55 +0000)
commit5cd044e8c84f8424cbbaa4b4e82b5c473f9bc120
treee229bf44d197289755d5a61d6c27f82b5af8a598
parent64b047fcc1d4b7aebe37fcc24948db73f0c75693
Use new vector insert half-word and byte instructions when we see insertelement on '8 x i16' and '16 x i8' types.  Also extended existing lit testcase to cover these cases.

Differential Revision: https://reviews.llvm.org/D34630

llvm-svn: 317613
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/p9-vinsert-vextract.ll