forked from OSchip/llvm-project
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:
parent
2d819f5fa4
commit
139eac5b71
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue