<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 - [AArch64] SelectPostLoadLane called with non-constant index"
href="https://bugs.llvm.org/show_bug.cgi?id=35789">35789</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[AArch64] SelectPostLoadLane called with non-constant index
</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>Backend: AArch64
</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@justinbogner.com, llvm-bugs@lists.llvm.org, mcrosier@codeaurora.org
</td>
</tr></table>
<p>
<div>
<pre>Partially reduced from
<a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4862">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4862</a>
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
define void @foo(<4 x i32>* %X0, <4 x i32>* %X1, <4 x i32>* %X2) {
bb:
%L7 = load i1, i1* undef
%A2 = alloca i32
%L5 = load i32, i32* %A2
%G1 = getelementptr i32, i32* %A2, i32 %L5
%L6 = load i32, i32* %G1
%G4 = getelementptr i32, i32* %G1, i1 %L7
%L2 = load i32, i32* %G4
%e = select <4 x i1> <i1 false, i1 false, i1 true, i1 false>, <4 x i32>
zeroinitializer, <4 x i32> <i32 11, i32 15, i32 32, i32 99>
%E9 = extractelement <4 x i32> %e, i32 %L2
%I3 = insertelement <4 x i32> %e, i32 %L5, i32 %L2
%bg = select <4 x i1> zeroinitializer, <4 x i32> <i32 33, i32 10, i32 67, i32
66>, <4 x i32> <i32 42, i32 91, i32 47, i32 40>
%E1 = extractelement <4 x i32> %bg, i32 0
%I15 = insertelement <4 x i32> %bg, i32 %L6, i32 %E1
%I8 = insertelement <4 x i32> %I3, i32 %E9, i32 %L5
store <4 x i32> %I15, <4 x i32>* %X0
store <4 x i32> %e, <4 x i32>* %X1
store <4 x i32> %I8, <4 x i32>* %X2
ret void
}
Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!",
file D:\LLVM\llvm\include\llvm/Support/Casting.h, line 241</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>