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