aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMBaseRegisterInfo.cpp
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-07-13 21:43:08 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-07-13 21:43:08 +0000
commitea670f1dd8067a9b65f952d0548669045bf0e21f (patch)
treedbec86765e5065564826a450afc9098dc0da8c32 /lib/Target/ARM/ARMBaseRegisterInfo.cpp
parent174f816f304219dab82d6d88eac2b6affee7c38d (diff)
Fix FP elimination code to work for Thumb-2 addrmode AddrModeT2_so. This fixes SingleSource/Benchmarks/Stanford/Queens (among others).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseRegisterInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMBaseRegisterInfo.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp
index c93473d62e..41b061a123 100644
--- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp
+++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp
@@ -1121,18 +1121,22 @@ eliminateFrameIndex(MachineBasicBlock::iterator II,
break;
}
case ARMII::AddrModeT2_i12: {
- ImmIdx = i+2;
+ ImmIdx = i+1;
InstrOffs = MI.getOperand(ImmIdx).getImm();
NumBits = 12;
break;
}
- case ARMII::AddrModeT2_so:
case ARMII::AddrModeT2_i8: {
- ImmIdx = i+2;
+ ImmIdx = i+1;
InstrOffs = MI.getOperand(ImmIdx).getImm();
NumBits = 8;
break;
}
+ case ARMII::AddrModeT2_so: {
+ ImmIdx = i+2;
+ InstrOffs = MI.getOperand(ImmIdx).getImm();
+ break;
+ }
default:
LLVM_UNREACHABLE("Unsupported addressing mode!");
break;