[LLVMbugs] [Bug 9964] New: ARM Thumb 2: MOV R0, R1 does not work

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 20 01:56:44 PDT 2011


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

           Summary: ARM Thumb 2: MOV R0, R1 does not work
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM assembly language parser
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: xocotl at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I have to use MOVS R0, R1.
This would be fine, except I can't use that with immediates.
For inline assembler in Clang this is something of a problem for me. :)
Be nice to be able to use the same instruction for both..

GCC allows asm("mov r0, r1") just fine. Maybe ARM Thumb had
this restriction? ARM Thumb 2 certainly does not.

The error is "error: instruction requires a CPU feature not currently enabled".
Command line is clang -cc1 -emit-obj -target-cpu cortex-m3 -triple
thumb-none-eabi (or thumb-gcc) test.c

clang -cc1 -S of course does not object. It's definitely an assembler problem.

Thanks

James

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