mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
More tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c1bfd13c0a
commit
fa78358a05
@ -30,3 +30,15 @@ begin
|
||||
ret int %C
|
||||
end
|
||||
|
||||
int "test4"(int %A, int %B) {
|
||||
%C = sub int 0, %A
|
||||
%D = add int %B, %C ; D = B + -A = B - A
|
||||
ret int %D
|
||||
}
|
||||
|
||||
int "test5"(int %A, int %B) {
|
||||
%C = sub int 0, %A
|
||||
%D = add int %C, %B ; D = -A + B = B - A
|
||||
ret int %D
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user