diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-20 18:03:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-20 18:03:34 +0000 |
commit | 697cbbfb00c318f98d6eb51945f077e2bfe8781e (patch) | |
tree | 5e9badf081c1c2df5cee211ca2efe5451a07faf4 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | e9d81f0ad8a7fa75776e1bc4cf396061d2ab041c (diff) |
For inline asm output operand that matches an input. Encode the input operand index in the high bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index b25776abb9..2a64524860 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1401,7 +1401,7 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const { for (; Val; --Val) { if (OpNo >= MI->getNumOperands()) break; unsigned OpFlags = MI->getOperand(OpNo).getImm(); - OpNo += (OpFlags >> 3) + 1; + OpNo += InlineAsm::getNumOperandRegisters(OpFlags) + 1; } if (OpNo >= MI->getNumOperands()) { |