Add ori reg, reg, 0 as a move instruction. This can be generated from
authorNate Begeman <natebegeman@mac.com>
Thu, 7 Oct 2004 22:26:12 +0000 (22:26 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 7 Oct 2004 22:26:12 +0000 (22:26 +0000)
commitcb90de37a720b0b00d6303b49b8df6d5ac5f34f9
treec79217f3b3bbd097f64987255a7747a9e168ba43
parent5a181c848bc9994265ef27d3f9fc50144968f61b
Add ori reg, reg, 0 as a move instruction.  This can be generated from
loading a 32bit constant into a register whose low halfword is all zeroes.

We now omit the ori after the lis for the following C code:

int bar(int y) { return y * 0x00F0000; }

_bar:
.LBB_bar_0:     ; entry
        ; IMPLICIT_DEF
        lis r2, 15
        mullw r3, r3, r2
        blr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16825 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.cpp