[LLVMbugs] [Bug 11731] New: llc -mcpu=cortex-m0 generates illegal opcodes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 9 11:01:34 PST 2012


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

             Bug #: 11731
           Summary: llc -mcpu=cortex-m0 generates illegal opcodes
           Product: new-bugs
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dwelch at dwelch.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


If you examine either the ARMv6-M TRM or even better the ARMv7-M TRM you will
see that most of the thumb2 instructions for the cortex-m3 (ARMv7-M) are not
supported by the cortex-m0 (ARMv6-M).  llc does not complain about the use of
-mcpu=cortex-m0 but it does produce instructions not supported by the
cortex-m0, as if the backend assumes the two are the same.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list