mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
This multiply can be eliminated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc2b449a17
commit
1dda055e55
@ -50,3 +50,11 @@ uint %test9(uint %i) {
|
||||
%j = mul uint %i, 4294967295 ; %j = sub 0, %i
|
||||
ret uint %j
|
||||
}
|
||||
|
||||
uint %test10(int %a, uint %b) {
|
||||
%c = setlt int %a, 0
|
||||
%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