1
0
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:
Chris Lattner 2002-05-06 16:44:53 +00:00
parent f5ca08da87
commit a7c5a80fa8

View File

@ -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
}