[LLVMbugs] [Bug 4609] New: Thumb2 cannot use register index with PC-relative addressing
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jul 22 17:25:15 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4609
Summary: Thumb2 cannot use register index with PC-relative
addressing
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bob.wilson at apple.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3235)
--> (http://llvm.org/bugs/attachment.cgi?id=3235)
testcase
This bug originates from trying to build darwin-crt3.c for ARMv7 in Thumb mode.
Compile the attached testcase with:
llc -relocation-model=pic ldr_pc_plus_reg.bc
The compiler does not crash but the assembler complains:
ldr_pc_plus_reg.s:570:cannot use register index with PC-relative addressing --
`ldr r1,[pc,+r1]'
The problem does not occur if you don't specify -relocation-model=pic.
--
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