<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 - combineInsertEltToShuffle - ASSERT: idx < size()"
href="https://bugs.llvm.org/show_bug.cgi?id=44139">44139</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>combineInsertEltToShuffle - ASSERT: idx < size()
</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>Windows NT
</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>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm-dev@redking.me.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, spatel+llvm@rotateright.com
</td>
</tr></table>
<p>
<div>
<pre>Reduced from <a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16944">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16944</a>
define void @f() {
entry:
%L = load <16 x i64>, <16 x i64>* undef
%E1 = extractelement <16 x i64> %L, i64 0
%tempvector = insertelement <16 x i64> undef, i64 %E1, i32 0
%vector = shufflevector <16 x i64> %tempvector, <16 x i64> undef, <16 x i32>
zeroinitializer
%C3 = icmp sgt i64 9223372036854775807, -9223372036854775808
%0 = trunc <16 x i64> %vector to <16 x i32>
%I4 = insertelement <16 x i64> %vector, i64 %E1, i1 %C3
store <16 x i64> %I4, <16 x i64>* undef
%elt = extractelement <16 x i32> %0, i32 0
%B = srem i32 %elt, -2147483648
%B9 = udiv i32 %elt, %B
store i32 %B9, i32* undef
unreachable
}
llc -mtriple=x86_64--
llc: /home/simon/LLVM/llvm-project/llvm/include/llvm/ADT/SmallVector.h:149: T&
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
<span class="quote">>::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
>::size_type) [with T = int; <template-parameter-1-2> = void;</span >
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference =
int&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type
= long unsigned int]: Assertion `idx < size()' 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>