[LLVMbugs] [Bug 7757] New: Some ARM instructions contain extra \n when disassembled
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 30 09:45:03 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7757
Summary: Some ARM instructions contain extra \n when
disassembled
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sliedes at cc.hut.fi
CC: llvmbugs at cs.uiuc.edu
Hi,
When I use llvm-mc to disassemble blocks of ARM instructions, some instructions
contain an extra newline after them. One such instruction is '0xc9 0xff 0x87
0x00' (add pc, r7, r9). For example:
No extra newline (works correctly, instruction '0 0 0 0'):
--------------------------------------------------
$ echo '0 0 0 0'|Debug+Asserts/bin/llvm-mc --disassemble --triple=arm
andeq r0, r0, r0
$ echo '0 0 0 0 0 0 0 0' |Debug+Asserts/bin/llvm-mc --disassemble --triple=arm
$ echo '0 0 0 0 0 0 0 0' |Debug+Asserts/bin/llvm-mc --disassemble --triple=arm
andeq r0, r0, r0
andeq r0, r0, r0
$
--------------------------------------------------
Incorrect extra newline, instruction c9 ff 87 00:
--------------------------------------------------
$ echo '0xc9 0xff 0x87 0x00' |Debug+Asserts/bin/llvm-mc --disassemble
--triple=arm
add pc, r7, r9
$ echo '0xc9 0xff 0x87 0x00 0 0 0 0' |Debug+Asserts/bin/llvm-mc --disassemble
--triple=arm
add pc, r7, r9
andeq r0, r0, r0
--------------------------------------------------
As can be seen, there's an extra newline after the add instruction.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list