[PowerPC] Generate Power9 extswsli extend sign and shift immediate instruction
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 17 Aug 2018 12:35:44 +0000 (12:35 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 17 Aug 2018 12:35:44 +0000 (12:35 +0000)
commit39751276b0aa7b22e50c40913b4c9f8e8a449c51
treee5a501aab0bb4bbc44bb54ccbd6b11f246fd8674
parent03e57521c0fc720b6bf7ab858f232e4d02942be4
[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

llvm-svn: 340016
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/llvm/test/CodeGen/PowerPC/extswsli.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/extswsli.ll [new file with mode: 0644]