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

           Summary: BX LR does not work in Thumb
           Product: libraries
           Version: 2.9
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=6602)
 --> (http://llvm.org/bugs/attachment.cgi?id=6602)
The testme.s file

BX LR is a rather important instruction, but it does not work in Thumb mode.
Here is my output. I am targeting Cortex-M3.

C:\Code\src\thirdp\llvm-bin\bin\Release>llc -march=thumb -mattr=+thumb2
-filetype=obj -o testme.x te
stme.s
<inline asm>:2:4: error: invalid operand for instruction
it vs
   ^
<inline asm>:4:1: error: instruction requires a CPU feature not currently
enabled
bx lr
^
LLVM ERROR: Error parsing inline asm

Stack dump:
0.      Program arguments: llc -march=thumb -mattr=+thumb2 -filetype=obj -o
testme.x testme.s
1.      Running pass 'Function Pass Manager' on module 'testme.s'.
2.      Running pass 'ARM Assembly Printer' on function '@test'

For what it's worth, IT VS also appears to not work (it doesn't even understand
the *instruction* ITT)...

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