<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][AVX512] simple test crashes on assertion when targeting AVX512 with -O0"
   href="https://bugs.llvm.org/show_bug.cgi?id=34653">34653</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[X86][AVX512] simple test crashes on assertion when targeting AVX512 with -O0
          </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>normal
          </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>the following IR:

declare fastcc <38 x double> @test() 

define void @main() {
entry:
  %v = call fastcc <38 x double> @test()
  %v.0 = extractelement <38 x double> %v, i32 0
  ret void
}

<span class="quote">> llc test.ll -O0 -mattr=+avx512f</span >

================================================================================

llc: <PATH>/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:3439: llvm::SDValue
FoldCONCAT_VECTORS(const llvm::SDLoc&, llvm::EVT,
llvm::ArrayRef<llvm::SDValue>, llvm::SelectionDAG&): Assertion
`llvm::all_of(Ops, [Ops](SDValue Op) { return Ops[0].getValueType() ==
Op.getValueType(); }) && "Concatenation of vectors with inconsistent value
types!"' failed.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x0000000003335193 (llc+0x3335193)
#1 0x0000000003335224 (llc+0x3335224)
#2 0x0000000003333710 (llc+0x3333710)
#3 0x0000000003334b2b (llc+0x3334b2b)
#4 0x00007f4d57d4f5e0 __restore_rt (/lib64/libpthread.so.0+0xf5e0)
#5 0x00007f4d5694c1f7 __GI_raise (/lib64/libc.so.6+0x351f7)
#6 0x00007f4d5694d8e8 __GI_abort (/lib64/libc.so.6+0x368e8)
#7 0x00007f4d56945266 __assert_fail_base (/lib64/libc.so.6+0x2e266)
#8 0x00007f4d56945312 (/lib64/libc.so.6+0x2e312)
#9 0x00000000031773fc (llc+0x31773fc)
#10 0x000000000317cf24 (llc+0x317cf24)
#11 0x0000000003189ada (llc+0x3189ada)
#12 0x00000000032329e7 (llc+0x32329e7)
#13 0x000000000322a5d7 (llc+0x322a5d7)
#14 0x0000000003224395 (llc+0x3224395)
#15 0x0000000003201378 (llc+0x3201378)
#16 0x00000000032066c5 (llc+0x32066c5)
#17 0x00000000031b0ac7 (llc+0x31b0ac7)
#18 0x00000000031b011e (llc+0x31b011e)
#19 0x00000000031b516a (llc+0x31b516a)
#20 0x00000000031aeddf (llc+0x31aeddf)
#21 0x00000000021071ec (llc+0x21071ec)
#22 0x0000000002823b41 (llc+0x2823b41)
#23 0x0000000002c2a2ec (llc+0x2c2a2ec)
#24 0x0000000002c2a47f (llc+0x2c2a47f)
#25 0x0000000002c2a80b (llc+0x2c2a80b)
#26 0x0000000002c2aefc (llc+0x2c2aefc)
#27 0x0000000002c2b13d (llc+0x2c2b13d)
#28 0x0000000001309a6a (llc+0x1309a6a)
#29 0x00000000013082d5 (llc+0x13082d5)
#30 0x00007f4d56938c05 __libc_start_main (/lib64/libc.so.6+0x21c05)
#31 0x0000000001306249 (llc+0x1306249)
Stack dump:
0.      Program arguments: llc test.ll -O0 -mattr=+avx512f 
1.      Running pass 'Function Pass Manager' on module 'test.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Aborted (core dumped)</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>