mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
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:
parent
12edc7ef3d
commit
19e40ade3d
@ -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…
x
Reference in New Issue
Block a user