<html>
<head>
<base href="https://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 --- - Incorrect code gen with fast-isel"
href="https://llvm.org/bugs/show_bug.cgi?id=26080">26080</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect code gen with fast-isel
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</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>Backend: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kbarton@ca.ibm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15593" name="attach_15593" title="Test case">attachment 15593</a> <a href="attachment.cgi?id=15593&action=edit" title="Test case">[details]</a></span>
Test case
The attached test case compiles incorrectly at -O0 or with -fast-isel on
ppc64le (P8).
Steps to reproduce the problem:
Good:
csmith llc -O1 wrong1.bc
csmith gcc -o wrong1.good wrong1.s
./wrong1.good
checksum = DA24AA98
Bad (-O0):
llc -O0 wrong1.bc
gcc -o wrong1.bad wrong1.s
./wrong1.bad
checksum = D1427FE6
Bad (-O1 -fast-isel):
llc -O1 -fast-isel wrong1.bc
gcc -o wrong1.bad wrong1.s
./wrong1.bad
checksum = D1427FE6
The good result is reproduced with different opt levels, and with GCC as well.
I have tried to reduce the test with bugpoint, but it was unable to reduce it.</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>