Follow up on new support for memory operands in ARM inline assembly.

This fixes pr4233.

llvm-svn: 72115
This commit is contained in:
Bob Wilson 2009-05-19 18:33:02 +00:00
parent 670da9a22a
commit 840e3281ff
1 changed files with 4 additions and 0 deletions

View File

@ -688,6 +688,10 @@ void ARMRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
unsigned AddrMode = (Desc.TSFlags & ARMII::AddrModeMask);
bool isSub = false;
// Memory operands in inline assembly always use AddrMode2.
if (Opcode == ARM::INLINEASM)
AddrMode = ARMII::AddrMode2;
if (Opcode == ARM::ADDri) {
Offset += MI.getOperand(i+1).getImm();
if (Offset == 0) {