[LLVMbugs] [Bug 9134] New: register spilled to wrong location
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 3 12:16:06 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9134
Summary: register spilled to wrong location
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: SystemZ
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6096)
--> (http://llvm.org/bugs/attachment.cgi?id=6096)
test case
When registers are spilled around call sites, the first spill is to the wrong
stack offset.
The result of the test code produced by "llc -march=systemz" is:
zalloc: # @zalloc
stmg %r14, %r15, 112(%r15)
stg %r2, 168(%r15) # <--exceeds frame size
# spills to old %r15
aghi %r15, -184 # expand frame 160+24
brasl %r14, malloc
stg %r2, 160(%r15) # superfluous but OK
lg %r4, 168(%r15) # <--reload from new r15
lghi %r3, 0
brasl %r14, memset
lg %r1, 160(%r15)
stg %r1, 176(%r15)
lg %r2, 176(%r15)
lmg %r14, %r15, 296(%r15)
br %r14
--
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