<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 - Failure to compile CL code with address space conversion"
href="https://bugs.llvm.org/show_bug.cgi?id=41070">41070</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Failure to compile CL code with address space conversion
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>OpenCL
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anastasia.stulova@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>anastasia.stulova@arm.com, drohr@jwdt.org, llvm-bugs@lists.llvm.org, Matthew.Arsenault@amd.com, yaxun.liu@amd.com
</td>
</tr></table>
<p>
<div>
<pre>I am creating this bug on behalf of David although he is experiencing slightly
different behavior that we are discussing on this bug:
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Clang internal error during compilation of OpenCL C++ code"
href="show_bug.cgi?id=40778">https://bugs.llvm.org/show_bug.cgi?id=40778</a>
while working on his code I have encountered the following failure if OpenCL
code like this is compiled:
generic int* foo(private int* i){
return i;
}
Example command line to reproduce:
clang -cl-std=CL2.0 -x cl --target=amdgcn-amd-amdhsa a.cl
It fails with:
fatal error: error in backend: Attempting to emit FLAT_LOAD_DWORD_ci
instruction but the Feature_isCIOnly predicate(s) are not met
Not sure it is expected to work or not. So I am adding Matt and Sam that might
be able to shed some light on the problem. Feel free to reclassify the bug if
needed.
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>