[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 11 20:07:23 PST 2005
Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.130 -> 1.131
---
Log message:
Print a load of a null pointer (in intel mode) like this:
mov %AX, WORD PTR [0]
instead of like this:
mov %AX, WORD PTR []
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.130 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.131
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.130 Tue Jan 11 22:05:19 2005
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp Tue Jan 11 22:07:11 2005
@@ -365,7 +365,7 @@
printOp(DispSpec, true);
} else {
int DispVal = DispSpec.getImmedValue();
- if (DispVal) {
+ if (DispVal || (!BaseReg.getReg() && !IndexReg.getReg())) {
if (NeedPlus)
if (DispVal > 0)
O << " + ";
More information about the llvm-commits
mailing list