[LLVMbugs] [Bug 16886] New: Frame pointer elimination causes misaligned stack
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Aug 14 13:37:25 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16886
Bug ID: 16886
Summary: Frame pointer elimination causes misaligned stack
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: nicolas.capens at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11035
--> http://llvm.org/bugs/attachment.cgi?id=11035&action=edit
Repro IR printout
My JIT-compiled function looks like this when using LLVM 3.3:
push ebp
push ebx
push edi
push esi
sub esp,0ACh
...
movaps xmmword ptr [esp+80h],xmm1
...
It's a leaf function, so frame pointer elimination took place, but in the fifth
instruction of the prologue esp isn't adjusted to a 16-byte aligned value. Thus
the first SSE spill instruction causes an unaligned access violation.
This happens even when I set TargetOptions::StackAlignmentOverride to 16. I
have to set NoFramePointerElim to true to get working code.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130814/81609ac5/attachment.html>
More information about the llvm-bugs
mailing list