<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 - [X86] CodeGen crashes on assert of non-simple type after type-legalization"
   href="https://bugs.llvm.org/show_bug.cgi?id=34397">34397</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[X86] CodeGen crashes on assert of non-simple type after type-legalization
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ayman.musa@intel.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=19071" name="attach_19071" title="Reproducer">attachment 19071</a> <a href="attachment.cgi?id=19071&action=edit" title="Reproducer">[details]</a></span>
Reproducer

Run: ../build/bin/llc -mcpu=haswell nonSimpleCrash.ll -o nonSimpleCrash.s

llc:
/export/iusers/aymanmus/workspaces/llorg_git/llvm/include/llvm/CodeGen/ValueTypes.h:254:
llvm::MVT llvm::EVT::getSimpleVT() const: Assertion `isSimple() && "Expected a
SimpleValueType!"' failed.
#0 0x000000000328b331 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Unix/Signals.inc:398:0
#1 0x000000000328b3c2 PrintStackTraceSignalHandler(void*)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Unix/Signals.inc:462:0
#2 0x0000000003289906 llvm::sys::RunSignalHandlers()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Signals.cpp:49:0
#3 0x000000000328acc9 SignalHandler(int)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Unix/Signals.inc:252:0
#4 0x00007fc8bf173100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#5 0x00007fc8bdd6b5f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#6 0x00007fc8bdd6cce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#7 0x00007fc8bdd64566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#8 0x00007fc8bdd64612 (/lib64/libc.so.6+0x2e612)
#9 0x0000000001328c2a llvm::EVT::getSimpleVT() const
/export/iusers/aymanmus/workspaces/llorg_git/llvm/include/llvm/CodeGen/ValueTypes.h:255:0
#10 0x0000000001406634 llvm::SDValue::getSimpleValueType() const
/export/iusers/aymanmus/workspaces/llorg_git/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:170:0
#11 0x00000000031621b7 (anonymous
namespace)::VectorLegalizer::LegalizeOp(llvm::SDValue)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:236:0
#12 0x00000000031619bb (anonymous namespace)::VectorLegalizer::Run()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:164:0
#13 0x0000000003168ce9 llvm::SelectionDAG::LegalizeVectors()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:1123:0
#14 0x0000000003108fa3 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:786:0
#15 0x0000000003108242
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&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:666:0
#16 0x000000000310d7eb
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1614:0
#17 0x0000000003106f03
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:467:0
#18 0x00000000020c471c (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:178:0
#19 0x00000000027bcfff
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/MachineFunctionPass.cpp:62:0
#20 0x0000000002bac26a llvm::FPPassManager::runOnFunction(llvm::Function&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1514:0
#21 0x0000000002bac3fd llvm::FPPassManager::runOnModule(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1535:0
#22 0x0000000002bac789 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1591:0
#23 0x0000000002bace7a llvm::legacy::PassManagerImpl::run(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1694:0
#24 0x0000000002bad0bb llvm::legacy::PassManager::run(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1726:0
#25 0x00000000012e8c91 compileModule(char**, llvm::LLVMContext&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/tools/llc/llc.cpp:567:0
#26 0x00000000012e74fc main
/export/iusers/aymanmus/workspaces/llorg_git/llvm/tools/llc/llc.cpp:342:0
#27 0x00007fc8bdd57b15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#28 0x00000000012e53b9 _start (../build/bin/llc+0x12e53b9)
Stack dump:
0.      Program arguments: ../build/bin/llc -mcpu=haswell
bugpoint-reduced-simplified.ll -o bugpoint-reduced-simplified.s 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
Aborted</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>