<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 --- - Assertion failure with -mavx" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24021&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=s8N15I_d6HO5iQr3YNZYKV9fqyGmgg5dPO_n1SFFALg&s=6N76EDpt3VSpZJI0SsV4dYKZuwCLdhPVKr3mGj0kG8o&e=">24021</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure with -mavx
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sunil_srivastava@playstation.sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Following example gives an Assertion failure on linux, with -mavx
-----------------------------------------------
typedef float __m256 __attribute__ ((__vector_size__ (32)));
union ub {__m256 f1;int f2;};
void testx( void (*func)(ub, int));
void (*f0) (ub, int);;
int main(int argc, char **argv)
{
testx (f0);;
return 0;
}
-----------------------------------------------
clang version 3.7.0 (trunk 241287)
Target: x86_64-unknown-linux-gnu
$clang++ -cc1 -emit-obj -target-feature +avx -triple x86_64-unknown-linux-gnu
bad.cpp
clang++: /llvm/tools/clang/lib/CodeGen/TargetInfo.cpp:2655:
clang::CodeGen::ABIArgInfo
{anonymous}::X86_64ABIInfo::classifyArgumentType(clang::QualType, unsigned int,
unsigned int&, unsigned int&, bool) const: Assertion `(Hi != SSEUp || Lo ==
SSE) && "Invalid SSEUp classification."' failed.</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>