[PowerPC] Generate Power9 extswsli extend sign and shift immediate instruction
commitac879930f819230bbb1dbc7ae1fd353567d30293
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 17 Aug 2018 12:35:44 +0000 (17 12:35 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 17 Aug 2018 12:35:44 +0000 (17 12:35 +0000)
treee1a5f8033c20b73b0990b11709b12e0f32410a1a
parent19852c64c0918de262323c6a15bd074c60a84c90
[PowerPC] Generate Power9 extswsli extend sign and shift immediate instruction

Add a DAG combine for the PowerPC code generator to generate the Power9 extswsli
extend sign and shift immediate instruction.

Patch by RolandF.

Differential revision: https://reviews.llvm.org/D49879

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340016 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/extswsli.ll [new file with mode: 0644]
test/CodeGen/PowerPC/extswsli.ll [new file with mode: 0644]