mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Add some new tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ca6a2c72c
commit
d4dd775a24
@ -177,3 +177,17 @@ long %test25(long %Y) {
|
|||||||
ret long %tmp.8
|
ret long %tmp.8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int %test26(int %A, int %B) {
|
||||||
|
%C = add int %A, %B
|
||||||
|
%D = sub int %C, %B
|
||||||
|
ret int %D
|
||||||
|
}
|
||||||
|
|
||||||
|
int %test27(bool %C, int %X, int %Y) {
|
||||||
|
%A = add int %X, %Y
|
||||||
|
%B = add int %Y, 123
|
||||||
|
%C = select bool %C, int %A, int %B ;; Fold add through select.
|
||||||
|
%D = sub int %C, %Y
|
||||||
|
ret int %D
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user