summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-24 00:26:11 +0000
committerChris Lattner <sabre@nondot.org>2004-08-24 00:26:11 +0000
commita88d667487b30b2278c73d7b1f65af1ac17afbd0 (patch)
treeca3d131e7d84e96915ef512bd8dea22e4f796470 /llvm/lib/CodeGen/AsmPrinter.cpp
parentadc0b83eecd35c699f1f34c1bf0f1b548ce5000f (diff)
downloadbcm5719-llvm-a88d667487b30b2278c73d7b1f65af1ac17afbd0.tar.gz
bcm5719-llvm-a88d667487b30b2278c73d7b1f65af1ac17afbd0.zip
Do not use .xword and friends to emit zeros on V9. Apparently there are issues
with emitting .xwords when not on an 8-byte boundary (.xword 0 is not the same as 8 .byte 0's). Because we do not know when or when we are not aligned, just emit bytes like the old V9 asmprinter did. llvm-svn: 16006
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index 79580294a6e..11565dff0b3 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -46,12 +46,6 @@ void AsmPrinter::emitZeros(unsigned NumZeros) const {
if (ZeroDirective)
O << ZeroDirective << NumZeros << "\n";
else {
- if (NumZeros >= 8 && Data64bitsDirective) {
- for (; NumZeros >= 8; NumZeros -= 8)
- O << Data64bitsDirective << "0\n";
- }
- for (; NumZeros >= 4; NumZeros -= 4)
- O << Data32bitsDirective << "0\n";
for (; NumZeros; --NumZeros)
O << Data8bitsDirective << "0\n";
}
OpenPOWER on IntegriCloud