<html>
<head>
<base href="https://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 --- - PowerPC backend hits "Addend source register is not live!" assertion in PPCVSXFMAMutate.cpp:188"
href="https://llvm.org/bugs/show_bug.cgi?id=24544">24544</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PowerPC backend hits "Addend source register is not live!" assertion in PPCVSXFMAMutate.cpp:188
</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>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>Backend: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anton@samba.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The testcase below is hitting the following assert:
clang: /home/anton/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp:188: bool
{anonymous}::PPCVSXFMAMutate::processBlock(llvm::MachineBasicBlock&): Assertion
`(!TargetRegisterInfo::isVirtualRegister(AddendSrcReg) ||
LIS->getInterval(AddendSrcReg).liveAt(FMAIdx)) && "Addend source register is
not live!"' failed.
when built with:
# clang -O1 -ffast-math -c testcase.i
# cat testcase.i
typedef struct {
} LSH_recall_t;
typedef struct {
} ptb_vec_t;
int LSH_recall_init(LSH_recall_t * recall, int d_step, float d_min, float
d_max,
int M, int L, int T, float W)
{
double dist, r, p;
int i, j, k;
for (i = 0; i < d_step; i++) {
dist = d_min + (d_max - d_min) * i / d_step;
dist = W / sqrt(dist);
p = p_col_helper(dist);
}
}</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>