<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - umaal instruction generated for Cortex-M3"
   href="https://llvm.org/bugs/show_bug.cgi?id=31546">31546</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>umaal instruction generated for Cortex-M3
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.9
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mpj@rowley.co.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17806" name="attach_17806" title="source code">attachment 17806</a> <a href="attachment.cgi?id=17806&action=edit" title="source code">[details]</a></span>
source code

Source Code Attached

Command line

e:\llvm-3.9.1\bin\clang.exe -c -target arm-none-eabi -mcpu=cortex-m3 umaal.cpp
-O1

Disassembly

        .section        .text,"ax",%progbits
        .global _Stl_mult64(unsigned long long, unsigned long long, unsigned
long long&, unsigned long long&)
        .thumb_func
_Stl_mult64(unsigned long long, unsigned long long, unsigned long long&,
unsigned long long&):
        push {r4-r6, lr}
        umull r12, lr, r2, r0
        mov r5, #0
        ldr r4, [sp, #20]
        umlal lr, r5, r2, r1
        umull r0, r2, r3, r0
        add.w r6, lr, r0
        adds.w r0, r0, lr
        adc r0, r2, #0
        umaal r5, r0, r3, r1
        ldr r1, [sp, #16]
        strd r12, r6, [r4, #0]
        strd r5, r0, [r1, #0]
        pop {r4-r6, pc}</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>