Handle Thumb-2 addressing modes during FP elimination.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Goodwin 2009-07-09 18:35:52 +00:00
parent 633eb95f3e
commit 8b98b85c64

View File

@ -1120,6 +1120,19 @@ eliminateFrameIndex(MachineBasicBlock::iterator II,
Scale = 4;
break;
}
case ARMII::AddrModeT2_i12: {
ImmIdx = i+2;
InstrOffs = MI.getOperand(ImmIdx).getImm();
NumBits = 12;
break;
}
case ARMII::AddrModeT2_so:
case ARMII::AddrModeT2_i8: {
ImmIdx = i+2;
InstrOffs = MI.getOperand(ImmIdx).getImm();
NumBits = 8;
break;
}
default:
LLVM_UNREACHABLE("Unsupported addressing mode!");
break;