commit | 6c2d2601614ba769c0371f01e22ebebd92643be5 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Apr 24 22:51:03 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Apr 24 22:51:03 2007 +0000 |
tree | 44be64fb2709095cbde12c5937b5a04999247eb8 | |
parent | 10161db78085c3c004213a8f9c9c180efc7f484c [diff] [blame] |
Fix PR1351 and CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36410 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 7f57f69..83fe41a 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -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; } }