mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix PR1351 and CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll
llvm-svn: 36410
This commit is contained in:
parent
f20a2f1083
commit
583fd8343e
@ -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…
x
Reference in New Issue
Block a user