<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Frame pointer elimination causes misaligned stack"
href="http://llvm.org/bugs/show_bug.cgi?id=16886">16886</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Frame pointer elimination causes misaligned stack
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolas.capens@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11035" name="attach_11035" title="Repro IR printout">attachment 11035</a> <a href="attachment.cgi?id=11035&action=edit" title="Repro IR printout">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>