<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 - After r322972, Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function UpdateCPSRUse, file lib/Target/ARM/Thumb2SizeReduction.cpp, line 965."
href="https://bugs.llvm.org/show_bug.cgi?id=41116">41116</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>After r322972, Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function UpdateCPSRUse, file lib/Target/ARM/Thumb2SizeReduction.cpp, line 965.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dimitry@andric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>As described in <a href="https://bugs.freebsd.org/236568">https://bugs.freebsd.org/236568</a>, compiling the FreeBSD
devel/xwpe port for armv7 asserts with:
Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function
UpdateCPSRUse, file lib/Target/ARM/Thumb2SizeReduction.cpp, line 995.
Bisection shows this started occurring after <a href="https://reviews.llvm.org/rL322972">https://reviews.llvm.org/rL322972</a>
("[ARM] Fix perf regression in compare optimization").
Minimized test case:
/* clang -cc1 -triple armv7-- -S -O1 -fno-signed-char we_menue-min.c */
int a;
typedef struct {
int b;
} c;
char d;
void e() {
c *f = (c *)1;
int g;
if (d & 1)
f = 0;
if (d & 2)
f[1].b = d & 1;
a = 0;
}</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>