<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 --- - fix for #22563 discards the upper half of (non-array) __m256 objects" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24073&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=UiZNkDII71hXQ7IRdiX8C_ahkWpI5c4_-ChbqKSirGg&s=eQPEuVFBsAQzZHn_bfz_-FtiPBLW83q9BtoJDC9a6hA&e=">24073</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>fix for #22563 discards the upper half of (non-array) __m256 objects
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kretz@kde.org
</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>The following testcase, compiled with -mavx at any optimization level fails:
#include <x86intrin.h>
class V {
__m256 d;
public:
[[gnu::noinline]] V(__m256 x) : d(x) {}
bool verify() const {
return 0xff == _mm256_movemask_ps(_mm256_cmp_ps(d, _mm256_set1_ps(1.f),
_CMP_EQ_OQ));
}
};
V foo() { return _mm256_set1_ps(1.f); }
int main() { return foo().verify() ? 0 : 1; }
After the V::V constructor, clang emits "vmovaps (%rsp),%xmm0" instead of
"vmovaps (%rsp),%ymm0". Reverting bce1e8184fcb311e1ec3cbf03247bdf24e91d5e2
(r229408 in SVN) solves the issue.</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>