| commit | c6b63cd2edde5b06c924faa718c1ff5053a6c9cf | [log] [tgz] |
|---|---|---|
| author | Nate Begeman <natebegeman@mac.com> | Thu Oct 07 22:26:12 2004 +0000 |
| committer | Nate Begeman <natebegeman@mac.com> | Thu Oct 07 22:26:12 2004 +0000 |
| tree | 7304e4d827b9323809342852d53a1f33fd2af9d3 | |
| parent | 70a9d9c0b18fc3643d6df997b9146101630e5c39 [diff] |
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
llvm-svn: 16825