[LLVMbugs] [Bug 13617] New: LLVM+Clang emits movw instrucionts with -march=armv6zk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 16 03:47:00 PDT 2012


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

             Bug #: 13617
           Summary: LLVM+Clang emits movw instrucionts with -march=armv6zk
           Product: new-bugs
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: js-llvm-bugzilla at webkeks.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When specifying -march=armv6, LLVM still emits movw instructions. However,
those were introduced with armv7, thus the assembler aborts the commit. Without
-march=armv6, LLVM just emits them on my ARMv6 system, leading to SIGILL. The
same happens for other armv6 variants like armv6zk.

Basically this means LLVM currently can't compile code that works on an ARMv6
system, as it ignores everything telling it to not emit ARMv7 instructions. The
same happens for me with -mcpu=arm1176jzf-s, so there's absolutely no way to
disable the usage of the movw instruction, it seems.

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