<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 --- - [i686, pre-SSE41] vec3 type legalization fails for zero_extend_vector_inreg"
href="https://llvm.org/bugs/show_bug.cgi?id=30614">30614</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[i686, pre-SSE41] vec3 type legalization fails for zero_extend_vector_inreg
</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>pirama@google.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pirama@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, srhines@google.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The following IR fails type legalization:
$ cat < vec3-zext.ll
define <3 x i16> @_Z14convert_short3Dv3_h(<3 x i8>) local_unnamed_addr #6 {
%2 = zext <3 x i8> %0 to <3 x i16>
ret <3 x i16> %2
}
$ llc -mtriple=i686-android-linux vec3-zext.ll -O 3 -mcpu=atom
pirama@pirama:XX:llvm-build$ llc -mtriple=i686-android-linux ext.ll -O 3
-mcpu=atom
PromoteIntegerResult #0: t29: v4i16 = zero_extend_vector_inreg t28
Do not know how to promote this operator!
UNREACHABLE executed at
/ssd1/pirama/llvm-upstream/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:51!
This was introduced in r264062 where zero_extend changed to
zero_extend_vector_inreg during DAG combine.
I'll add the relevant legalization hooks to make this test pass.</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>