mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
This is implemented
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e6099b05f
commit
b685af3e60
@ -217,22 +217,3 @@ _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…
x
Reference in New Issue
Block a user