<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 failed: isa<llvm::VectorType>(IRType) && "Trying to return a non-vector type in a vector register!""
href="https://llvm.org/bugs/show_bug.cgi?id=23082">23082</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: isa<llvm::VectorType>(IRType) && "Trying to return a non-vector type in a vector register!"
</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: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>douglas_yung@playstation.sony.com
</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 code causes an assertion failure in the compiler after r230971.
// ===============================================================
typedef float __m128 __attribute__((__vector_size__(16)));
typedef int __m128i __attribute__((__vector_size__(16)));
union id1524 { __m128 id1522; __m128i id1514; };
id1524 test14_funcid1498() {}
// ===============================================================
When compiling with a compiler built from r230971 or newer on linux targeting
x86_64-unknown-linux-gnu, it fails with the assertion:
clang: /home/dyung/llvm/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp:2214:
llvm::Type* {anonymous}::X86_64ABIInfo::GetByteVectorType(clang::QualType)
const: Assertion `isa<llvm::VectorType>(IRType) && "Trying to return a
non-vector type in a vector register!"' failed.
Thanks to Greg Bedwell for helping me to get a smaller repro for this 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>