<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 --- - error in backend: Cannot select: t17: x86mmx = select_cc t2, Constant:i64<0>, t7, t8, seteq:ch"
href="https://llvm.org/bugs/show_bug.cgi?id=30418">30418</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>error in backend: Cannot select: t17: x86mmx = select_cc t2, Constant:i64<0>, t7, t8, seteq:ch
</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: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>paul_robinson@playstation.sony.com
</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>Created <span class=""><a href="attachment.cgi?id=17285" name="attach_17285" title="compiler-command script">attachment 17285</a> <a href="attachment.cgi?id=17285&action=edit" title="compiler-command script">[details]</a></span>
compiler-command script
One of our generated-source testers found this.
$ cat bz157150.cpp
typedef long __m64 __attribute__((__vector_size__(8)));
__m64 test47(long id9969) {
long id9966;
unsigned char *bytes = (unsigned char*)&id9966;
for (unsigned i = 0; i != 7; ++i) {
bytes[0] = 0 + i;
}
for (char id9967_idx = 0; (id9967_idx < 1) && id9969; ++id9967_idx) {
id9966 *= id9967_idx;
}
__m64 id9965 = (__m64)(id9966);
return __builtin_ia32_psllw(id9965, id9965);
}
$ clang -c -O1 bz157150.cpp
fatal error: error in backend: Cannot select: t17: x86mmx = select_cc t2,
Constant:i64<0>, t7, t8, seteq:ch
t2: i64,ch = CopyFromReg t0, Register:i64 %vreg0
t1: i64 = Register %vreg0
t3: i64 = Constant<0>
t7: x86mmx = bitcast Constant:i64<6>
t6: i64 = Constant<6>
t8: x86mmx = bitcast Constant:i64<0>
t3: i64 = Constant<0>
In function: _Z6test47l
clang-4.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.0 (trunk 281729)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/probinson/projects/llvm-org/trunk/cobj/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/bz157150-461a80.cpp
clang-4.0: note: diagnostic msg: /tmp/bz157150-461a80.sh
clang-4.0: note: diagnostic msg:
********************</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>