parent
973db87308
commit
e0c3fbb559
|
|
@ -30,3 +30,15 @@ begin
|
||||||
ret int %C
|
ret int %C
|
||||||
end
|
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