mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d837d152d
commit
7af2865fc6
@ -46,12 +46,6 @@ void AsmPrinter::emitZeros(unsigned NumZeros) const {
|
|||||||
if (ZeroDirective)
|
if (ZeroDirective)
|
||||||
O << ZeroDirective << NumZeros << "\n";
|
O << ZeroDirective << NumZeros << "\n";
|
||||||
else {
|
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)
|
for (; NumZeros; --NumZeros)
|
||||||
O << Data8bitsDirective << "0\n";
|
O << Data8bitsDirective << "0\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user