<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 - Clang++ error in backend Cannot select t11"
href="https://bugs.llvm.org/show_bug.cgi?id=49307">49307</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang++ error in backend Cannot select t11
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dosarudaniel@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24558" name="attach_24558" title="Follow the README instruction to compile test4 target. Uncomment the test4.cpp:22">attachment 24558</a> <a href="attachment.cgi?id=24558&action=edit" title="Follow the README instruction to compile test4 target. Uncomment the test4.cpp:22">[details]</a></span>
Follow the README instruction to compile test4 target. Uncomment the
test4.cpp:22
If the queues[0]->enqueue(0); line from test4.cpp:22 is uncommented I get this
weird compile error:
fatal error: error in backend: Cannot select: t11: i32,ch = AtomicLoad<(load
seq_cst 4 from %ir._M_i.i.i.i.i.i)> t6:1, t10 t10: i64 = add nuw t6,
Constant:i64<8> t6: i64,ch = load<(load 8 from %ir.arg, !tbaa !9, addrspace 1)>
t0, t15, undef:i64 t15: i64,ch = load<(dereferenceable invariant load 8 from
i64 addrspace(101)* null, addrspace 101)> t0,
TargetExternalSymbol:i64'_ZTSZZ4mainENKUlRN2cl4sycl7handlerEE39_16clES2_EUlNS0_7nd_itemILi3EEEE40_63_param_0',
undef:i64 t1: i64 =
TargetExternalSymbol'_ZTSZZ4mainENKUlRN2cl4sycl7handlerEE39_16clES2_EUlNS0_7nd_itemILi3EEEE40_63_param_0'
t3: i64 = undef t3: i64 = undef t9: i64 = Constant<8> In function:
_ZTSZZ4mainENKUlRN2cl4sycl7handlerEE39_16clES2_EUlNS0_7nd_itemILi3EEEE40_63
clang-12: error: clang frontend command failed with exit code 70 (use -v to see
invocation) clang version 13.0.0 (<a href="https://github.com/intel/llvm">https://github.com/intel/llvm</a>
73b7da0314703154d613d7883a3483468e7e461a) Target: x86_64-unknown-linux-gnu
Thread model: posix InstalledDir: /home/dadosaru/sycl_workspace/llvm/build/bin
clang-12: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs. CMakeFiles/test4.dir/build.make:102: recipe for target
'test4' failed make[3]: *** [test4] Error 70 CMakeFiles/Makefile2:129: recipe
for target 'CMakeFiles/test4.dir/all' failed make[2]: ***
[CMakeFiles/test4.dir/all] Error 2 CMakeFiles/Makefile2:136: recipe for target
'CMakeFiles/test4.dir/rule' failed make[1]: *** [CMakeFiles/test4.dir/rule]
Error 2 Makefile:150: recipe for target 'test4' failed make: *** [test4] Error
2</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>