<html>
<head>
<base href="http://llvm.org/bugs/" />
</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/lib/CodeGen/RegisterCoalescer.cpp Assertion `MO.isDef() && MO.isImplicit() && MO.isDead() && TargetRegisterInfo::isPhysicalRegister(MO.getReg())' failed"
href="http://llvm.org/bugs/show_bug.cgi?id=16031">16031</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm/lib/CodeGen/RegisterCoalescer.cpp Assertion `MO.isDef() && MO.isImplicit() && MO.isDead() && TargetRegisterInfo::isPhysicalRegister(MO.getReg())' failed
</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>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>kcc@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>test case by csmith/creduce
llvm r182001, linux x86_32
% clang -cc1 -triple i386-unknown-linux-gnu -emit-obj -O2 -x c e.c
clang-3.3: llvm/lib/CodeGen/RegisterCoalescer.cpp:798: bool <anonymous
namespace>::RegisterCoalescer::reMaterializeTrivialDef(llvm::CoalescerPair &,
llvm::MachineInstr *): Assertion `MO.isDef() && MO.isImplicit() && MO.isDead()
&& TargetRegisterInfo::isPhysicalRegister(MO.getReg())' failed.
3. Running pass 'Function Pass Manager' on module 'e.c'.
4. Running pass 'Simple Register Coalescing' on function '@main'
typedef long long int64_t;
int a;
int b;
int c;
int64_t d;
int main () {
a = 1;
for (; a; a = 0) {
c = 0;
c -= 1;
if (b)
break;
c = 0;
for (; c > -9; c = c - 4) {
}
}
d = (c & - (int64_t) c ^ c) < 0 ? c & 67 : (c & 67) - (int64_t) c;
}</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>