From: Chris Lattner Date: Fri, 24 Feb 2006 19:50:58 +0000 (+0000) Subject: Pass all the flags to the asm printer, not just the # operands. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=daf6bc6347b4785102611bdf21c512e8a7678cce;p=oota-llvm.git Pass all the flags to the asm printer, not just the # operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26362 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 9450576a9ad..dceaced12f9 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/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. diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index b7c7ec37f73..9bc168f7a6d 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -328,7 +328,7 @@ void ScheduleDAG::EmitNode(NodeInfo *NI) { unsigned Flags = cast(Node->getOperand(i))->getValue(); unsigned NumVals = Flags >> 3; - MI->addZeroExtImm64Operand(NumVals); + MI->addZeroExtImm64Operand(Flags); ++i; // Skip the ID value. switch (Flags & 7) {