Handle the unsigned form as well

llvm-svn: 11739
This commit is contained in:
Chris Lattner 2004-02-23 06:37:33 +00:00
parent 50598d1135
commit 4a306afab5

View File

@ -65,3 +65,10 @@ uint %test11(int %a, uint %b) {
ret uint %e
}
uint %test11(ubyte %a, uint %b) {
%c = setgt ubyte %a, 127
%d = cast bool %c to uint
%e = mul uint %d, %b ; e = b & (a >> 31)
ret uint %e
}