<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 - llc crashes in SelectionDAG"
   href="https://bugs.llvm.org/show_bug.cgi?id=35219">35219</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llc crashes in SelectionDAG
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>Common Code Generator Code
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dmitry.mikulin@sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19375" name="attach_19375" title="repro test">attachment 19375</a> <a href="attachment.cgi?id=19375&action=edit" title="repro test">[details]</a></span>
repro test

@llvm.type.test triggers a crash with the attached test case:
Can't get register for value!
UNREACHABLE executed at
/Users/dmikulin/Dev/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1151!
0  llc                      0x0000000109207f2c
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1  llc                      0x00000001092084a9
PrintStackTraceSignalHandler(void*) + 25
2  llc                      0x0000000109204599 llvm::sys::RunSignalHandlers() +
425
3  llc                      0x0000000109208832 SignalHandler(int) + 354
4  libsystem_platform.dylib 0x00007fffb047cb3a _sigtramp + 26
5  libsystem_platform.dylib 0x000000011235c86d _sigtramp + 1642986829
6  libsystem_c.dylib        0x00007fffb0301420 abort + 129
7  llc                      0x0000000109105010 LLVMInstallFatalErrorHandler + 0
8  llc                      0x0000000108ef54af
llvm::SelectionDAGBuilder::getValueImpl(llvm::Value const*) + 6783
9  llc                      0x0000000108ef398a
llvm::SelectionDAGBuilder::getValue(llvm::Value const*) + 170
10 llc                      0x0000000108f0e26f
llvm::SelectionDAGBuilder::visitTargetIntrinsic(llvm::CallInst const&, unsigned
int) + 751
11 llc                      0x0000000108f0febb
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) + 3035
12 llc                      0x0000000108eec10c
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 364
13 llc                      0x0000000108ee0167
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 1223
14 llc                      0x0000000108edf1a8
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 152
15 llc                      0x0000000108fde430
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction,
true, false, void>, false, true>,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, true>, bool&) + 192
16 llc                      0x0000000108fdd064
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 10180
17 llc                      0x0000000108fd8db0
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 2400
18 llc                      0x0000000107673bbb (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 59
19 llc                      0x00000001081d0631
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 449
20 llc                      0x0000000108712e6f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 399
21 llc                      0x0000000108713375
llvm::FPPassManager::runOnModule(llvm::Module&) + 117
22 llc                      0x0000000108714144 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 2196
23 llc                      0x0000000108713636
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 342
24 llc                      0x0000000108714e71
llvm::legacy::PassManager::run(llvm::Module&) + 33
25 llc                      0x00000001061dcab0 compileModule(char**,
llvm::LLVMContext&) + 21856
26 llc                      0x00000001061d6957 main + 2471
27 libdyld.dylib            0x00007fffb026d235 start + 1
Stack dump:
0.      Program arguments: /Users/dmikulin/Dev/llvm/build/bin/llc test.ll 
1.      Running pass 'Function Pass Manager' on module 'test.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@fk'
Abort trap: 6</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>