mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
test some more mul by constant removal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f80d2f61af
commit
0fb79fa078
@ -3,9 +3,20 @@
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
ulong %foo(ulong %x) {
|
||||
ulong %foo1(ulong %x) {
|
||||
entry:
|
||||
%tmp.1 = mul ulong %x, 5 ; <ulong> [#uses=1]
|
||||
%tmp.1 = mul ulong %x, 9 ; <ulong> [#uses=1]
|
||||
ret ulong %tmp.1
|
||||
}
|
||||
ulong %foo3(ulong %x) {
|
||||
entry:
|
||||
%tmp.1 = mul ulong %x, 259
|
||||
ret ulong %tmp.1
|
||||
}
|
||||
|
||||
ulong %foo1n(ulong %x) {
|
||||
entry:
|
||||
%tmp.1 = mul ulong %x, 511
|
||||
ret ulong %tmp.1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user