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