mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-16 08:27:21 +00:00
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
This commit is contained in:
parent
10161db780
commit
6c2d260161
@ -442,6 +442,12 @@ bool PPCAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user