mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
oops, this stopped us turning movl r4=0xFFFFFFFF;; and rX, r4 into zxt4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7bfba7d5e3
commit
3eb7150c3e
@ -460,7 +460,7 @@ static unsigned ExactLog2(uint64_t Val) {
|
||||
static unsigned ExactLog2sub1(uint64_t Val) {
|
||||
unsigned int n;
|
||||
for(n=0; n<64; n++) {
|
||||
if(Val==(uint64_t)((1<<n)-1))
|
||||
if(Val==(uint64_t)((1LL<<n)-1))
|
||||
return n;
|
||||
}
|
||||
return 666;
|
||||
|
Loading…
Reference in New Issue
Block a user