<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 - LLVM Error: Cannot select: 0x48b91b8: i1 = add 0x48b9080, Constant:i1<-1>"
href="https://bugs.llvm.org/show_bug.cgi?id=41449">41449</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLVM Error: Cannot select: 0x48b91b8: i1 = add 0x48b9080, Constant:i1<-1>
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>wangzihao@ict.ac.cn
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>When I using hipcc to link some ported function from cuda. The linker shows the
error info:
LLVM ERROR: Cannot select: 0x48b91b8: i1 = add 0x48b9080, Constant:i1<-1>
0x48b9080: i1,ch = CopyFromReg 0x4258fe8, Register:i1 %29
0x48bb1d8: i1 = Register %29
0x4706c38: i1 = Constant<-1>
In function:
_Z23hip_kernel_diff2_coarseILb0ELb0ELi512ELi1ELi2EEvPfS0_S0_S0_S0_S0_18AccProjectorKernelS0_S0_ii
Generating AMD GCN kernel failed in llc for target: gfx906
clang-7: error: linker command failed with exit code 1 (use -v to see
invocation)
I also try to change the AMDGPU_TARGET by export HCC_AMDGPU_TARGET=gfx900 also
doesn't work.
I almost check the code of the function hip_kernel_diff2_coarse line by line.
And find if I comment one statement like this the error will disappear, but it
is important in the code.
imag = c * s_imag[i + init_pixel % block_sz] + s * s_real[i + init_pixel %
block_sz] ;
How can I keep this sentence to solve this problem?
Thanks!</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>