[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 11 20:05:34 PST 2005
Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.129 -> 1.130
---
Log message:
Print a load of a null pointer like this:
movw 0, %ax
instead of like this:
movw , %ax
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.129 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.130
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.129 Thu Dec 16 11:33:24 2004
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp Tue Jan 11 22:05:19 2005
@@ -563,7 +563,7 @@
printOp(DispSpec, true);
} else {
int DispVal = DispSpec.getImmedValue();
- if (DispVal)
+ if (DispVal || (!IndexReg.getReg() && !BaseReg.getReg()))
O << DispVal;
}
More information about the llvm-commits
mailing list