diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-01 20:44:52 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-01 20:44:52 +0000 |
commit | fd522996c8645dbaafd68630c31c3e410686fd06 (patch) | |
tree | 34877c9a8700e7c9b7004eb7bcc6227194a533c0 /llvm/lib | |
parent | 26c642de74af98708b87d7210e6ad9f4fc91c56d (diff) | |
download | bcm5719-llvm-fd522996c8645dbaafd68630c31c3e410686fd06.tar.gz bcm5719-llvm-fd522996c8645dbaafd68630c31c3e410686fd06.zip |
Pasto. Lots of it.
llvm-svn: 33762
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 02b15207ba0..35066faf554 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -311,12 +311,10 @@ void ARMConstantIslands::InitialFunctionScan(MachineFunction &Fn, Scale = 4; // Taking the address of a CP entry. break; case ARMII::AddrMode2: - Bits = 12; - Scale = 2; // +-offset_12 + Bits = 12; // +-offset_12 break; case ARMII::AddrMode3: - Bits = 8; - Scale = 2; // +-offset_8 + Bits = 8; // +-offset_8 break; // addrmode4 has no immediate offset. case ARMII::AddrMode5: @@ -342,7 +340,7 @@ void ARMConstantIslands::InitialFunctionScan(MachineFunction &Fn, // Remember that this is a user of a CP entry. MachineInstr *CPEMI =CPEMIs[I->getOperand(op).getConstantPoolIndex()]; - unsigned MaxOffs = (1 << (Bits-1)) * Scale; + unsigned MaxOffs = ((1 << Bits)-1) * Scale; CPUsers.push_back(CPUser(I, CPEMI, MaxOffs)); // Instructions can only use one CP entry, don't bother scanning the |