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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to