<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: 0x5f34ff8: f32 = SPISD::XTOF"
href="https://bugs.llvm.org/show_bug.cgi?id=35631">35631</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>fatal error: error in backend: Cannot select: 0x5f34ff8: f32 = SPISD::XTOF
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Target Description Classes
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rtrieu@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>fedor.v.sergeev@gmail.com, jyknight@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Suspected root cause in r318704.
$ cat test.cpp
class S {
void Run(int frame_count);
float floats[10];
int cols;
int rows;
};
void S::Run(int count) {
const unsigned long long modulus = 240;
const float angle = count % modulus;
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
unsigned index = rows * i + j;
float rotation = 0;
if (i % 2 == j % 2) {
rotation = angle;
}
floats[index] = rotation;
}
}
}
$ clang -target sparc-myriad test.cpp
fatal error: error in backend: Cannot select: 0x5f5eff8: f32 = SPISD::XTOF
0x5f5f130
0x5f5f130: f64,ch = load<LD8[FixedStack8]> 0x5f5f200, FrameIndex:i32<8>,
undef:i32
0x5f5f060: i32 = FrameIndex<8>
0x5f5c2d0: i32 = undef
In function: _ZN1S3RunEi
clang-6.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 6.0.0 (trunk 320396)</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>