[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Apr 24 15:51:21 PDT 2007
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.237 -> 1.238
---
Log message:
Fix PR1351: http://llvm.org/PR1351 and CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll
---
Diffs of the changes: (+6 -0)
PPCAsmPrinter.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.237 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.238
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.237 Thu Mar 8 02:31:54 2007
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Tue Apr 24 17:51:03 2007
@@ -442,6 +442,12 @@
return true;
++OpNo; // Return the high-part.
break;
+ case 'I':
+ // Write 'i' if an integer constant, otherwise nothing. Used to print
+ // addi vs add, etc.
+ if (MI->getOperand(OpNo).isImm())
+ O << "i";
+ return false;
}
}
More information about the llvm-commits
mailing list