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

            Bug ID: 34837
           Summary: UNREACHABLE in DAGTypeLegalizer::PromoteIntegerResult
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: babo...@gmail.com
                CC: llvm-bugs@lists.llvm.org

clang trunk, rev314936, x86_64

> cat f.cpp
unsigned a;
struct {
  int b : 17;
  char c;
} d;
void e() { d.b = (a > (a > 0) + a) + a; }

> clang++  -std=c++11 -w -O2 -c f.cpp
Not implemented
UNREACHABLE executed at
/home/dybaboki/llvm/llvm-trunk-20171004/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:776!
#0 0x000000000135083f llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x135083f)
#1 0x0000000001350b46 SignalHandler(int)
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x1350b46)
#2 0x00007fad4af2a370 __restore_rt (/lib64/libpthread.so.0+0xf370)
#3 0x00007fad49aa61d7 __GI_raise (/lib64/libc.so.6+0x351d7)
#4 0x00007fad49aa78c8 __GI_abort (/lib64/libc.so.6+0x368c8)
#5 0x000000000130f659
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x130f659)
#6 0x0000000001b608ae
llvm::DAGTypeLegalizer::PromoteIntegerResult(llvm::SDNode*, unsigned int)
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x1b608ae)
#7 0x0000000001b040ac llvm::DAGTypeLegalizer::run()
(/home/dybaboki/llvm/bin-trunk-20171004/bin/clang-6.0+0x1b040ac)
<...>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to