Handle the unsigned form as well

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-23 06:37:33 +00:00
parent 12edc7ef3d
commit 19e40ade3d

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
}