[LLVMbugs] [Bug 7636] New: thumb2 ldmia.w used as a return doesn't write back SP
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 13 14:12:39 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7636
Summary: thumb2 ldmia.w used as a return doesn't write back SP
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
When a ldmia.w is generated that includes the PC in the register list,
it doesn't update the stack pointer, e.g.:
ldmia.w sp, {r4, r5, r6, r8, pc}
should be:
ldmia.w sp!, {r4, r5, r6, r8, pc}
Strangely, in case where the register list contains LR instead of PC, the write
back is done.
A test case has to be sufficiently complicated to use ldmia.w rather than pop.
I have not attached one. If one is needed, let me know.
--
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