[LLVMbugs] [Bug 18928] New: Integrated assembler outputs not-printable characters for private labels
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Feb 21 09:52:54 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18928
Bug ID: 18928
Summary: Integrated assembler outputs not-printable characters
for private labels
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llc
Assignee: unassignedbugs at nondot.org
Reporter: dpeixott at codeaurora.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When printing an assembly file with private labels the integrated assembler
will output non-printable characters for the generated private label names.
$ cat tt.s
.syntax unified
foo:
b 1f
1:
add r0, r0, r0
$ llvm-mc -triple arm-none-linux < tt.s
.text
foo:
b ".L11"
".L11":
add r0, r0, r0
$ llvm-mc -triple arm-none-linux < tt.s | hexdump -C
00000000 09 2e 74 65 78 74 0a 66 6f 6f 3a 0a 09 62 09 22 |..text.foo:..b."|
00000010 2e 4c 31 02 31 22 0a 22 2e 4c 31 02 31 22 3a 0a |.L1.1".".L1.1":.|
00000020 09 61 64 64 09 72 30 2c 20 72 30 2c 20 72 30 0a |.add.r0, r0, r0.|
00000030 0a |.|
00000031
The hexdump output shows that the generated label name "L11" contains the
non-printable character 0x02 between the two 1's in the label name.
We should not output non-printable characters when outputting to an assembly
text file.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140221/5293a85b/attachment.html>
More information about the llvm-bugs
mailing list