[llvm-bugs] [Bug 30525] New: MC ARM disassembler does not support all instructions

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 26 05:50:31 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30525

            Bug ID: 30525
           Summary: MC ARM disassembler does not support all instructions
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: yyc1992 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Disassemble the following asm with llvm-objdump (note that this is not a valid
program, I'm just putting instructions that causes trouble in their own symbol
to workaround https://llvm.org/bugs/show_bug.cgi?id=15795)

```
        .text
f1:
  movw    r5, #31860
f2:
  movt    r5, #63337
f3:
  blx     r0
f4:
  bx      lr
```

output of `llvm-objdump`

```
f1:
     554:       74  <unknown>
     555:       5c 07 e3 69     stmibvs r3!, {r2, r3, r4, r6, r8, r9, r10} ^

f2:
     558:       69  <unknown>
     559:       57 4f e3 30     rsclo   r4, r3, r7, asr pc

f3:
     55c:       30  <unknown>
     55d:       ff 2f e1 1e     mcrne   p15, #7, r2, c1, c15, #7

f4:
     560:       1e  <unknown>
     561:       ff 2f e1 1e     mcrne   p15, #7, r2, c1, c15, #7

f5:
     564:       1e  <unknown>
     565:       ff 2f 01 1e     mcrne   p15, #0, r2, c1, c15, #7

f6:
     568:       1e  <unknown>
     569:       ff 2f 91 1e     mrcne   p15, #4, r2, c1, c15, #7

f7:
     56c:       1e  <unknown>
     56d:       ff  <unknown>
     56e:       2f  <unknown>
     56f:       11  <unknown>
```

Interestingly, the first 4 instructions are actually picked from the
instructions llvm JIT generates.

-- 
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/20160926/72a07b70/attachment.html>


More information about the llvm-bugs mailing list