<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 - [x86] Invalid operand expansion for MLOAD"
href="https://bugs.llvm.org/show_bug.cgi?id=36300">36300</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[x86] Invalid operand expansion for MLOAD
</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>aivchenk@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat test.ll
declare <16 x float> @llvm.masked.load.v16f32.p0v16f32(<16 x float>*, i32, <16
x i1>, <16 x float>)
define void @foo() local_unnamed_addr {
%tmp = call <16 x float> @llvm.masked.load.v16f32.p0v16f32(<16 x float>*
nonnull undef, i32 4, <16 x i1> undef, <16 x float> undef)
ret void
}
$ llc test.ll -mcpu=core-avx2
...
llc: llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:968: bool
llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SDNode*, unsigned int):
Assertion `Res.getValueType() == N->getValueType(0) && N->getNumValues() == 1
&& "Invalid operand expansion"' failed.
llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SDNode*, unsigned int)
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:967:0
#10 0x0000000003486599 llvm::DAGTypeLegalizer::run()
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:309:0
#11 0x000000000348b6b1 llvm::SelectionDAG::LegalizeTypes()
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:1187:0
#12 0x0000000003438267 llvm::SelectionDAGISel::CodeGenAndEmitDAG()</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>