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:
Duraid Madina 2005-04-14 10:06:35 +00:00
parent 7bfba7d5e3
commit 3eb7150c3e

View File

@ -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;