mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
Follow up on new support for memory operands in ARM inline assembly.
This fixes pr4233. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd35ed5153
commit
86c212e894
@ -688,6 +688,10 @@ void ARMRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
|
|||||||
unsigned AddrMode = (Desc.TSFlags & ARMII::AddrModeMask);
|
unsigned AddrMode = (Desc.TSFlags & ARMII::AddrModeMask);
|
||||||
bool isSub = false;
|
bool isSub = false;
|
||||||
|
|
||||||
|
// Memory operands in inline assembly always use AddrMode2.
|
||||||
|
if (Opcode == ARM::INLINEASM)
|
||||||
|
AddrMode = ARMII::AddrMode2;
|
||||||
|
|
||||||
if (Opcode == ARM::ADDri) {
|
if (Opcode == ARM::ADDri) {
|
||||||
Offset += MI.getOperand(i+1).getImm();
|
Offset += MI.getOperand(i+1).getImm();
|
||||||
if (Offset == 0) {
|
if (Offset == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user