<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 - [FastISel] Regression causing miscompile on inline asm"
href="https://bugs.llvm.org/show_bug.cgi?id=51623">51623</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[FastISel] Regression causing miscompile on inline asm
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>cameron.mcinally@nyu.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>chad.rosier@gmail.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, paul.robinson@am.sony.com, paul_robinson@playstation.sony.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25193" name="attach_25193" title="Reduced test case">attachment 25193</a> <a href="attachment.cgi?id=25193&action=edit" title="Reduced test case">[details]</a></span>
Reduced test case
The attached test case appears to miscompile after this commit:
<span class="quote">> commit c161775decddcc86fbbfefd7485a5d0ef5842aec
> Author: Paul Robinson <<a href="mailto:Paul.Robinson@sony.com">Paul.Robinson@sony.com</a>>
> Date: Mon Jan 11 08:32:36 2021 -0800</span >
>
<span class="quote">> [FastISel] Flush local value map on every instruction</span >
This was introduced in the 12.x timeframe, but still occurs in main.
To reproduce:
llc -O0 test.ll
The expected assembly is:
#APP
movl %eax, %eax
addl %ecx, %eax
#NO_APP
The current miscompile shows:
#APP
movl %eax, %ecx
addl %ecx, %ecx
#NO_APP</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>