<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 - fneg (xor X -2147483648) -> X fold is missing in IR"
href="https://bugs.llvm.org/show_bug.cgi?id=44622">44622</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>fneg (xor X -2147483648) -> X fold is missing in IR
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>code-quality
</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>nok.raven@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>define float @foo(float %0) {
%2 = fneg float %0
%3 = bitcast float %2 to i32
%4 = xor i32 %3, -2147483648
%5 = bitcast i32 %4 to float
%6 = fneg float %5
%7 = bitcast float %6 to i32
%8 = xor i32 %7, -2147483648
%9 = bitcast i32 %8 to float
ret float %9
}
Adding fast flag to fneg does not help.
<a href="https://godbolt.org/z/o9WQYp">https://godbolt.org/z/o9WQYp</a></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>