summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-24 19:50:58 +0000
committerChris Lattner <sabre@nondot.org>2006-02-24 19:50:58 +0000
commit5af3fdec121d6ac0535546018727bde73c6892a5 (patch)
tree908f65a7b8eb83312f87ae1c1fb4f62738fda01c /llvm/lib/CodeGen/AsmPrinter.cpp
parent2f8a794b1363aca27fcb9e48a9895351b54b19a9 (diff)
downloadbcm5719-llvm-5af3fdec121d6ac0535546018727bde73c6892a5.tar.gz
bcm5719-llvm-5af3fdec121d6ac0535546018727bde73c6892a5.zip
Pass all the flags to the asm printer, not just the # operands.
llvm-svn: 26362
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index 9450576a9ad..dceaced12f9 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -575,8 +575,10 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
unsigned OpNo = 1;
// Scan to find the machine operand number for the operand.
- for (; Val; --Val)
- OpNo += MI->getOperand(OpNo).getImmedValue()+1;
+ for (; Val; --Val) {
+ unsigned OpFlags = MI->getOperand(OpNo).getImmedValue();
+ OpNo += (OpFlags >> 3) + 1;
+ }
++OpNo; // Skip over the ID number.
OpenPOWER on IntegriCloud