[LLVMbugs] [Bug 15795] New: [arm disassembler] Disassembler can't read llvm created object

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 19 11:21:25 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15795

            Bug ID: 15795
           Summary: [arm disassembler] Disassembler can't read llvm
                    created object
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: echristo at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

~/builds/build-llvm/Debug+Asserts/bin/llc -filetype=obj
2011-01-19-MergedGlobalDbg.ll

~/builds/build-llvm/Debug+Asserts/bin/llvm-objdump -disassemble
2011-01-19-MergedGlobalDbg.o

_get3:
      28:    40 f2 84 32                                      addlo    pc, r4,
#4
      2c:    c0 f2 00 02                                      andeq    pc, r0,
#12
      30:    7a 44 91 78                                      ldmvc    r1, {r1,
r3, r4, r5, r6, r10, lr}
/Users/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump: warning:
invalid instruction encoding
      35:    70 08 46 70                                      subvc    r0, r6,
r0, ror r8
      39:    47 00 bf 40                                      adcsmi    r0, pc,
r7, asr #32

otool -tv gives:

_get3:
00000028    f2403284    movw    r2, #900
0000002c    f2c00200    movt    r2, #0
00000030        447a    add    r2, pc
00000032        7891    ldrb    r1, [r2, #2]
00000034        7090    strb    r0, [r2, #2]
00000036        4608    mov    r0, r1
00000038        4770    bx    lr
0000003a        bf00    nop

which isn't even close to what llvm-objdump is giving.

-- 
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/20130419/1bd37f11/attachment.html>


More information about the llvm-bugs mailing list