mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7ab54047e7
commit
13feb58aa1
@ -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
Block a user