<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 --- - Cannot select: 0x1020f2210: f64,ch,glue = X86ISD::FILD_FLAG"
href="http://llvm.org/bugs/show_bug.cgi?id=17495">17495</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Cannot select: 0x1020f2210: f64,ch,glue = X86ISD::FILD_FLAG
</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>All
</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>dimitry@andric.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>Consider the following test case:
#include <string.h>
void sample_move_dS_s24(float *dst, char *src, unsigned long nsamples, unsigned
long src_skip)
{
while (nsamples--) {
int x;
memcpy((char*)&x + 1, src, 3);
x >>= 8;
*dst = x / 8388608.0f;
dst++;
src += src_skip;
}
}
Compiling this with clang trunk r192062, using -m32 -O1 -c, results in:
fatal error: error in backend: Cannot select: 0x1020f2210: f64,ch,glue =
X86ISD::FILD_FLAG 0x101d3ceb8, 0x1020f2710, 0x1020f2a10<LD3[%2](align=1)>
[ID=23]
0x1020f2710: i32,ch = CopyFromReg 0x101d3ceb8, 0x1020f2510 [ORD=2] [ID=18]
0x1020f2510: i32 = Register %vreg2 [ORD=2] [ID=1]
In function: sample_move_dS_s24
Note there is no problem if the target is 64-bit.</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>