<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 - armv7-m target uses invalid 'smmls' instruction"
   href="https://bugs.llvm.org/show_bug.cgi?id=38765">38765</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>armv7-m target uses invalid 'smmls' instruction
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>arnd@linaro.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20803" name="attach_20803" title="linux/drivers/gpu/drm/drm_dp_mst_topology.c, preprocessed">attachment 20803</a> <a href="attachment.cgi?id=20803&action=edit" title="linux/drivers/gpu/drm/drm_dp_mst_topology.c, preprocessed">[details]</a></span>
linux/drivers/gpu/drm/drm_dp_mst_topology.c, preprocessed

Linux kernel randconfig testing on arm produced a build error:

$ clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-16.04/bin/clang
-Wparentheses-equality -O2 -Wno-unused -Wno-pointer-sign
--target=arm-linux-gnueabi -no-integrated-as -march=armv7-m -c
drm_dp_mst_topology.i

/tmp/drm_dp_mst_topology-bcb935.s: Assembler messages:
/tmp/drm_dp_mst_topology-bcb935.s:3067: Error: selected processor does not
support `smmls r2,r6,r0,r1' in Thumb mode

This does not happen with the integrated assembler, which accepts the smmls
instruction as valid even for armv7-m. According to
<a href="http://www.keil.com/support/man/docs/armasm/armasm_dom1361289901461.htm">http://www.keil.com/support/man/docs/armasm/armasm_dom1361289901461.htm</a>, it
should be valid only on armv7e-m but not armv7-m.</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>