mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 15:04:57 +00:00
New case to handle someday
llvm-svn: 24075
This commit is contained in:
parent
d44a96088b
commit
da6888930d
@ -217,5 +217,22 @@ _test:
|
||||
stw r2, 0(r3)
|
||||
blr
|
||||
|
||||
===-------------------------------------------------------------------------===
|
||||
|
||||
Compile
|
||||
int foo(int a) { return a * -2 + 63; }
|
||||
|
||||
to
|
||||
|
||||
_foo:
|
||||
slwi r0,r3,1
|
||||
subfic r3,r0,63
|
||||
blr
|
||||
|
||||
instead of:
|
||||
|
||||
_foo:
|
||||
mulli r2,r3,-2
|
||||
addi r3,r2,63
|
||||
blr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user