<html>
    <head>
      <base href="http://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 --- - Cortex M0 supports WFE but LLC does not allow it"
   href="http://llvm.org/bugs/show_bug.cgi?id=16350">16350</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cortex M0 supports WFE but LLC does not allow it
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.2
          </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>llc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>xocotl@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

When trying to compile, I get the following error:

...\bin\MinSizeRel>llc C:\...\tmp-49f01283-2ef0-45f5-9da2-
19446f5b511d.tmp -mtriple=thumbv6m-none-eabi -filetype=obj -mcpu=cortex-m0
-o=test.elf
<inline asm>:1:2: error: instruction requires: thumb2
        wfe
        ^

However, if I switch to Thumb 2 (thumbv7m-none-eabi), it uses CBNZ, which
Cortex M0 does not have. Cortex M0 is mostly Thumb but with a tiny bit of Thumb
2, and I think WFE is among that missing.

Have a good day

James</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>