<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] SDAG crash on rotate legalization"
href="https://bugs.llvm.org/show_bug.cgi?id=47320">47320</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[AArch64] SDAG crash on rotate legalization
</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>All
</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>spatel+llvm@rotateright.com
</td>
</tr>
<tr>
<th>CC</th>
<td>arnaud.degrandmaison@arm.com, llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>I noticed this on <a href="https://reviews.llvm.org/D86601">https://reviews.llvm.org/D86601</a>, but it's a different bug:
define <2 x i16> @rotate_v2i16(<2 x i16> %x, <2 x i16> %amt) nounwind {
%res = call <2 x i16> @llvm.fshr.v2i16(<2 x i16> %x, <2 x i16> %x, <2 x i16>
%amt)
ret <2 x i16> %res
}
declare <2 x i16> @llvm.fshr.v2i16(<2 x i16>, <2 x i16>, <2 x i16>)
$ llc -o - rot.ll -mtriple=aarch64
.text
.file "rot.ll"
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0. Program arguments: ./llc -o - rot.ll -mtriple=aarch64
1. Running pass 'Function Pass Manager' on module 'rot.ll'.
2. Running pass 'AArch64 Instruction Selection' on function
'@var_funnnel_v2i16'
0 llc 0x000000010b9ef778
llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
1 llc 0x000000010b9ee508 llvm::sys::RunSignalHandlers() +
248
2 llc 0x000000010b9efd8c SignalHandler(int) + 268
3 libsystem_platform.dylib 0x00007fff6a6725fd _sigtramp + 29
4 libsystem_platform.dylib 0x0000000000000010 _sigtramp + 18446603338731018800
5 llc 0x000000010b773793
llvm::DAGTypeLegalizer::ReplaceValueWith(llvm::SDValue, llvm::SDValue) + 67
6 llc 0x000000010b749e30
llvm::DAGTypeLegalizer::PromoteIntegerResult(llvm::SDNode*, unsigned int) + 784
7 llc 0x000000010b772cd8 llvm::DAGTypeLegalizer::run() +
2808
8 llc 0x000000010b7784ee
llvm::SelectionDAG::LegalizeTypes() + 1438
9 llc 0x000000010b885869
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1897</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>