[LLVMbugs] [Bug 16350] New: Cortex M0 supports WFE but LLC does not allow it

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 17 12:38:52 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16350

            Bug ID: 16350
           Summary: Cortex M0 supports WFE but LLC does not allow it
           Product: tools
           Version: 3.2
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: xocotl at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20130617/39bdcb16/attachment.html>


More information about the llvm-bugs mailing list