commit | 9aa2895360bd3951fc4f204d8699b84fd9ea6ba5 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Feb 01 00:39:08 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Feb 01 00:39:08 2007 +0000 |
tree | 459eac77f514e526c8d4daa67a9831a00cd6d1b6 | |
parent | 36a724341c7ed62ebccd7408f2e5f4e130f8d22d [diff] [blame] |
Fix CodeGen/PowerPC/2007-01-31-InlineAsmAddrMode.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33732 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 4324b9d..fb80350 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp
@@ -522,6 +522,9 @@ } // Take into account whether it's an add or mem instruction unsigned OffIdx = (i == 2) ? 1 : 2; + if (MI.getOpcode() == TargetInstrInfo::INLINEASM) + OffIdx = i-1; + // Get the frame index. int FrameIndex = MI.getOperand(i).getFrameIndex();