mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f17ffcce18
commit
706759e8c9
@ -169,3 +169,11 @@ int %test24(int %A) {
|
||||
%D = sub int %C, 2
|
||||
ret int %D ;; A << 1
|
||||
}
|
||||
|
||||
long %test25(long %Y) {
|
||||
%tmp.4 = shl long %Y, ubyte 2
|
||||
%tmp.12 = shl long %Y, ubyte 2
|
||||
%tmp.8 = add long %tmp.4, %tmp.12 ;; Y << 3
|
||||
ret long %tmp.8
|
||||
}
|
||||
|
||||
|
@ -111,3 +111,11 @@ int %test17(int %A) {
|
||||
%C = div int %B, 1234
|
||||
ret int %C
|
||||
}
|
||||
|
||||
long %test18(long %Y) {
|
||||
%tmp.4 = shl long %Y, ubyte 2
|
||||
%tmp.12 = shl long %Y, ubyte 2
|
||||
%tmp.8 = sub long %tmp.4, %tmp.12 ;; 0
|
||||
ret long %tmp.8
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user