<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - llvm-objdump cannot identify the arm jump instruction."
   href="https://bugs.llvm.org/show_bug.cgi?id=46701">46701</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-objdump cannot identify the arm jump instruction.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-objdump
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>2077213809@qq.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have the following code

extern void *memcpy(void *dst, const void *src, unsigned int size);
void test(char *a, const char *b, int c)
{
  memcpy(a, b, c);
}

Compiling
clang  -meabi gnu --target=arm-none-eabi -Oz -c test.c

disassembly
llvm-objdump -d test.o

00000000 <test>:
       0: fe ff ff ea                   b       #-8 <test>

the b instruction is not correct

when use gnu binutils, it's correct
arm-none-eabi-objdump -d test.o

00000000 <test>:
   0:   eafffffe        b       0 <memcpy></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>