diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-21 17:21:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-21 17:21:13 +0000 |
commit | 139eac5b71124c212371108005aff1fb7d31b5f2 (patch) | |
tree | 97a08b0c67e8b7083b7a3ee8aa449e8d6d42b898 /llvm/lib | |
parent | 2d819f5fa4b755540d4249ee2d762c6f3c2e67e2 (diff) | |
download | bcm5719-llvm-139eac5b71124c212371108005aff1fb7d31b5f2.tar.gz bcm5719-llvm-139eac5b71124c212371108005aff1fb7d31b5f2.zip |
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 2b5ff5970e0..9b33dd4bcba 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -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) { |