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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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

Reply via email to