[llvm-commits] CVS: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
Evan Cheng
evan.cheng at apple.com
Mon Dec 4 22:44:12 PST 2006
Changes in directory llvm/lib/Target/X86:
X86ATTAsmPrinter.cpp updated: 1.76 -> 1.77
---
Log message:
Asm printing bug.
---
Diffs of the changes: (+4 -6)
X86ATTAsmPrinter.cpp | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.76 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.77
--- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.76 Fri Dec 1 01:38:23 2006
+++ llvm/lib/Target/X86/X86ATTAsmPrinter.cpp Tue Dec 5 00:43:58 2006
@@ -192,7 +192,7 @@
if (X86PICStyle == PICStyle::Stub &&
TM.getRelocationModel() == Reloc::PIC_)
O << "-\"L" << getFunctionNumber() << "$pb\"";
- if (Subtarget->is64Bit())
+ if (isMemOp && Subtarget->is64Bit())
O << "(%rip)";
return;
}
@@ -210,7 +210,7 @@
else if (Offset < 0)
O << Offset;
- if (Subtarget->is64Bit())
+ if (isMemOp && Subtarget->is64Bit())
O << "(%rip)";
return;
}
@@ -265,8 +265,7 @@
else if (Offset < 0)
O << Offset;
- if (isMemOp &&
- Subtarget->is64Bit()) {
+ if (isMemOp && Subtarget->is64Bit()) {
if (isExt && TM.getRelocationModel() != Reloc::Static)
O << "@GOTPCREL";
O << "(%rip)";
@@ -288,8 +287,7 @@
if (!isCallOp) O << '$';
O << TAI->getGlobalPrefix() << MO.getSymbolName();
- if (!isCallOp &&
- Subtarget->is64Bit())
+ if (!isCallOp && Subtarget->is64Bit())
O << "(%rip)";
return;
More information about the llvm-commits
mailing list