mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Add a slight variant of test10
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45aaafef49
commit
f4821745df
@ -58,3 +58,10 @@ uint %test10(int %a, uint %b) {
|
||||
ret uint %e
|
||||
}
|
||||
|
||||
uint %test11(int %a, uint %b) {
|
||||
%c = setle int %a, -1
|
||||
%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