mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 05:55:40 +00:00
Handle the unsigned form as well
llvm-svn: 11739
This commit is contained in:
parent
50598d1135
commit
4a306afab5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user