1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Add testcases for negated multiplies

llvm-svn: 5739
This commit is contained in:
Chris Lattner 2003-03-10 23:22:50 +00:00
parent 715b592fc4
commit ca896e1827

View File

@ -59,3 +59,16 @@ int %test9(int %A) {
ret int %C
}
int %test10(int %A, int %B) { ; -A*-B == A*B
%C = sub int 0, %A
%D = sub int 0, %B
%E = mul int %C, %D
ret int %E
}
int %test10(int %A) { ; -A *c1 == A * -c1
%C = sub int 0, %A
%E = mul int %C, 7
ret int %E
}