<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 - Hang on thumbv6 code with 64-bit wide integers"
href="https://bugs.llvm.org/show_bug.cgi?id=51777">51777</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Hang on thumbv6 code with 64-bit wide integers
</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: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mh@cookiesoft.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>There is this regression between LLVM 8 and LLVM 9 where on the older version
the code compiles fine and on the later it will run indefinitely.
Here's the LLVM-IR:
```
target triple = "thumbv6em-none-unknown-eabihf"
define i64 @func(i64 %arg) {
start:
%0 = add i64 %arg, 1
%1 = icmp ult i64 %0, 1 ; only `ult` can be used here fwr
%2 = select i1 %1, i64 8, i64 0 ; 8 must be a power of 2
ret i64 %2
}
```
Here's a godbolt link: <a href="https://llvm.godbolt.org/z/6Ghefnesr">https://llvm.godbolt.org/z/6Ghefnesr</a>
Does work on thumbv7, but not of any of the thumbv6 architectures.</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>