<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 - LLVM 11 ICE regression wrt. inline asm in naked function with param"
href="https://bugs.llvm.org/show_bug.cgi?id=47708">47708</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLVM 11 ICE regression wrt. inline asm in naked function with param
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kinke@gmx.net
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The following IR for ARM compiles fine with LLVM 10, but crashes with LLVM 11
(an rc4+ build):
---
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "thumbv7m-unknown-none-eabi"
define void @foo(i32** %p_arg) #0 {
%1 = bitcast i32** %p_arg to i32***
%2 = load i32**, i32*** %1, align 4
call void asm sideeffect "ldrh r3, [$0]", "r"(i32** %2)
unreachable
}
attributes #0 = { naked "frame-pointer"="all" "target-cpu"="cortex-m3" }
---
With enabled assertions:
Can't get register for value!
UNREACHABLE executed at
...\llvm\lib\CodeGen\SelectionDAG\SelectionDAGBuilder.cpp:1609!</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>