[LLVMbugs] [Bug 9932] New: BX LR does not work in Thumb

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 16 19:50:59 PDT 2011


           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: unassignedbugs at nondot.org
        ReportedBy: xocotl at gmail.com
                CC: llvmbugs at cs.uiuc.edu

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
<inline asm>:2:4: error: invalid operand for instruction
it vs
<inline asm>:4:1: error: instruction requires a CPU feature not currently
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.

More information about the llvm-bugs mailing list