<html>
<head>
<base href="https://bugs.llvm.org/">
</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 lowering <128 x i1> select with avx512 enabled"
href="https://bugs.llvm.org/show_bug.cgi?id=43323">43323</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>assertion lowering <128 x i1> select with avx512 enabled
</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>enhancement
</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>nicholas@mxc.ca
</td>
</tr>
<tr>
<th>CC</th>
<td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
</td>
</tr></table>
<p>
<div>
<pre>Testcase:
define <128 x i1> @test4(<128 x i1> %a, <128 x i1> %b, <128 x i1> %c) {
%d = select <128 x i1> %a, <128 x i1> %b, <128 x i1> %c
ret <128 x i1> %d
}
llc -mattr=avx512f (or -mattr=avx512vl) crashes:
llc:
/home/nicholas/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:4624:
llvm::SDValue llvm::SelectionDAG::getNode(unsigned int, const llvm::SDLoc&,
llvm::EVT, llvm::SDValue, llvm::SDNodeFlags): Assertion `VT.isVector() &&
!Operand.getValueType().isVector() && (VT.getVectorElementType() ==
Operand.getValueType() || (VT.getVectorElementType().isInteger() &&
Operand.getValueType().isInteger() &&
VT.getVectorElementType().bitsLE(Operand.getValueType()))) && "Illegal
SCALAR_TO_VECTOR node!"' failed.
Stack dump:
0. Program arguments: llvm-project/build/bin/llc -mattr=avx512vl -O2
v128bitselect.ll -o -
1. Running pass 'Function Pass Manager' on module 'v128bitselect.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test4'
Produces correct code with -mattr=avx or -mattr=avx2. At worst it should call
back to avx2, not crash.</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>