<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 --- - Miscompiled x86_64 floating-point code at -O2"
href="http://llvm.org/bugs/show_bug.cgi?id=21394">21394</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Miscompiled x86_64 floating-point code at -O2
</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>cb@cebix.net
</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=13255" name="attach_13255" title="Test case">attachment 13255</a> <a href="attachment.cgi?id=13255&action=edit" title="Test case">[details]</a></span>
Test case
Clang 3.5.0 appears to miscompile the attached program on x86_64 at -O2:
$ clang++ --version
clang version 3.5.0 (tags/RELEASE_350/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang++ -O2 -o test -lQtCore test.cpp && ./test
QPointF(1, -1)
QPointF(0, -1)
$ clang++ -O1 -o test -lQtCore test.cpp && ./test
QPointF(1, -1)
QPointF(0, 0)
The result with -O1 is the expected output.
The problem does not appear with Clang 3.4.1.
Tested on SUSE Linux Enterprise Server 11 SP3 (x86_64) with Qt 4.6.3 and a
manually built Clang 3.5.0 obtained from the LLVM Download Page.</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>