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 | 2e55923fba87e9f0f1b5841b6a164c207cc9004d (patch) | |
tree | 0ea18d2b90ffeaaaa94d20b5f79af1c562a69afa /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 4ed32352c94037831355486bd6f449e77910e5e7 (diff) | |
download | bcm5719-llvm-2e55923fba87e9f0f1b5841b6a164c207cc9004d.tar.gz bcm5719-llvm-2e55923fba87e9f0f1b5841b6a164c207cc9004d.zip |
For inline asm output operand that matches an input. Encode the input operand index in the high bits.
llvm-svn: 67387
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index b25776abb94..2a64524860e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/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()) { |