<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 - fatal error: error in backend: Cannot select: t184: v2i64 = PPCISD::SCALAR_TO_VECTOR_PERMUTED t107"
href="https://bugs.llvm.org/show_bug.cgi?id=47916">47916</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>fatal error: error in backend: Cannot select: t184: v2i64 = PPCISD::SCALAR_TO_VECTOR_PERMUTED t107
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>Backend: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pkubaj@anongoth.pl
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>FreeBSD head, LLVM 11.0.0, powerpc64le
Release blocker, because it breaks bootstrapping openjdk8 with default flags.
Test case:
class a;
class b {
public:
a *operator->();
};
class c {
public:
void m_fn1(int d) { e = d; }
void f(int d) { g = d; }
int e;
int g;
};
class a {
public:
c *h();
};
b i;
void j(unsigned d, int *k, unsigned *l) {
c *m = i->h();
while (d--) {
m->m_fn1(*k++);
m->f(*l++);
m++;
}
}
Compile with:
/usr/bin/clang++ -cc1 -triple powerpc64le-unknown-freebsd13.0 -emit-obj
-target-cpu pwr7 -O2 -vectorize-loops classFileParser-e4fcc9.cpp
Result:
fatal error: error in backend: Cannot select: t184: v2i64 =
PPCISD::SCALAR_TO_VECTOR_PERMUTED t107
t107: i64,ch = load<(load 8 from %ir.scevgep108, align 4, !tbaa !2,
!alias.scope !6)> t0, t14, undef:i64
t14: i64 = add t9, Constant:i64<8>
t9: i64 = add t4, t8
t4: i64,ch = CopyFromReg t0, Register:i64 %50
t3: i64 = Register %50
t8: i64,ch = CopyFromReg t0, Register:i64 %8
t7: i64 = Register %8
t13: i64 = Constant<8>
t11: i64 = undef
In function: _Z1jjPiPj</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>