mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user