Print absolute memory references like this:

lwz r2, 8(0)
instead of this:
       lwz r2, 8(r0)

This fixes the llc/llc-beta failures on PPC last night.

llvm-svn: 26922
This commit is contained in:
Chris Lattner 2006-03-21 17:21:13 +00:00
parent 2d819f5fa4
commit 139eac5b71
1 changed files with 5 additions and 1 deletions

View File

@ -194,7 +194,11 @@ namespace {
void printMemRegImm(const MachineInstr *MI, unsigned OpNo) {
printSymbolLo(MI, OpNo);
O << '(';
printOperand(MI, OpNo+1);
if (MI->getOperand(OpNo+1).isRegister() &&
MI->getOperand(OpNo+1).getReg() == PPC::R0)
O << "0";
else
printOperand(MI, OpNo+1);
O << ')';
}
void printMemRegReg(const MachineInstr *MI, unsigned OpNo) {