mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
More tests
llvm-svn: 2489
This commit is contained in:
parent
f5ca08da87
commit
a7c5a80fa8
@ -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