[llvm-bugs] [Bug 49307] New: Clang++ error in backend Cannot select t11

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 22 02:32:20 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49307

            Bug ID: 49307
           Summary: Clang++ error in backend  Cannot select t11
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dosarudaniel at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 24558
  --> https://bugs.llvm.org/attachment.cgi?id=24558&action=edit
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 (https://github.com/intel/llvm
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210222/5aa392f3/attachment.html>


More information about the llvm-bugs mailing list