mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 18:33:56 +00:00
Make this testcase a bit more challanging
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41925f87d3
commit
feeeb30c32
@ -7,9 +7,17 @@ int %pure(int %X) {
|
||||
ret int %Y
|
||||
}
|
||||
|
||||
int %test(int %X) {
|
||||
int %test1(int %X) {
|
||||
%A = call int %pure(int %X)
|
||||
%B = call int %pure(int %X)
|
||||
%C = sub int %A, %B
|
||||
ret int %C
|
||||
}
|
||||
|
||||
int %test2(int %X, int* %P) {
|
||||
%A = call int %pure(int %X)
|
||||
store int %X, int* %P ;; Does not invalidate 'pure' call.
|
||||
%B = call int %pure(int %X)
|
||||
%C = sub int %A, %B
|
||||
ret int %C
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user