<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Bad codegen: funclet Prologue and Epilogue do not agree on frame size."
href="https://bugs.llvm.org/show_bug.cgi?id=45345">45345</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Bad codegen: funclet Prologue and Epilogue do not agree on frame size.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</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>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Daniel.Frampton@microsoft.com
</td>
</tr>
<tr>
<th>CC</th>
<td>arnaud.degrandmaison@arm.com, llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23288" name="attach_23288" title="Program that will crash if compiled and run on aarch64-pc-windows-msvc">attachment 23288</a> <a href="attachment.cgi?id=23288&action=edit" title="Program that will crash if compiled and run on aarch64-pc-windows-msvc">[details]</a></span>
Program that will crash if compiled and run on aarch64-pc-windows-msvc
The generated code for a funclet can have an add to sp in the epilogue for
which there is no corresponding sub in the prologue.
To trigger this case we must be generating a funclet and:
1) The function must make a call where arguments are passed on the stack (these
are the extra bytes the epilog adds).
2) We must not be able to combine the stack adjustment into a single sub to sp
when saving callee-save registers, which will happen if we have an aligned
object or are using alloca.
Attaching simple C++ repro.
Bug exists in both LLVM9 and master.</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>