This multiply can be eliminated

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-23 05:38:47 +00:00
parent fc2b449a17
commit 1dda055e55

View File

@ -50,3 +50,11 @@ uint %test9(uint %i) {
%j = mul uint %i, 4294967295 ; %j = sub 0, %i
ret uint %j
}
uint %test10(int %a, uint %b) {
%c = setlt int %a, 0
%d = cast bool %c to uint
%e = mul uint %d, %b ; e = b & (a >> 31)
ret uint %e
}