[LLVMbugs] [Bug 13899] New: aligned move used with unaligned stack [x86, windows]
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 21 12:53:31 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13899
Bug #: 13899
Summary: aligned move used with unaligned stack [x86,windows]
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matt at pharr.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9248
--> http://llvm.org/bugs/attachment.cgi?id=9248
test case
With the attached test case (32-bit x86, Windows), llc generates the following
assembly. Note that an aligned move is used, even though the stack isn't
necessarily 16-byte aligned going into the function. (And thus, the code
crashes when it is run in this case.)
_bar: # @bar
# BB#0: # %allocas
pushl %ebp
movl %esp, %ebp
subl $16, %esp
vmovaps 8(%ebp), %xmm4
vmovaps %xmm4, (%esp)
calll _foo
addl $16, %esp
popl %ebp
ret
--
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