<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 - [DAG] NumValues wasn't wide enough for its operands!"
   href="https://bugs.llvm.org/show_bug.cgi?id=51311">51311</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[DAG] NumValues wasn't wide enough for its operands!
          </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>Windows NT
          </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>llvm-dev@redking.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre><a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36779">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36779</a>

Reduced:

define void @test() {
  %E = extractvalue [1000000 x i8] undef, 999999
  ret void
}

llc fuzz.ll  -o -
        .text
        .file   "fuzz.ll"
llc:
/home/simon/LLVM/llvm-project/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1061:
llvm::SDNode::SDNode(unsigned int, unsigned int, llvm::DebugLoc,
llvm::SDVTList): Assertion `NumValues == VTs.NumVTs && "NumValues wasn't wide
enough for its operands!"' failed.
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: llc fuzz.ll -o -
1.      Running pass 'Function Pass Manager' on module 'fuzz.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
llc(+0x3137b54)[0x7f37b6645b54]
llc(+0x3134f4e)[0x7f37b6642f4e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)[0x7f37b34c23c0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f37b2f8618b]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7f37b2f65859]
/lib/x86_64-linux-gnu/libc.so.6(+0x25729)[0x7f37b2f65729]
/lib/x86_64-linux-gnu/libc.so.6(+0x36f36)[0x7f37b2f76f36]
llc(+0x2eda305)[0x7f37b63e8305]
llc(_ZN4llvm12SelectionDAG7getNodeEjRKNS_5SDLocENS_8SDVTListENS_8ArrayRefINS_7SDValueEEENS_11SDNodeFlagsE+0x6e9)[0x7f37b64075c9]
llc(_ZN4llvm12SelectionDAG14getMergeValuesENS_8ArrayRefINS_7SDValueEEERKNS_5SDLocE+0x159)[0x7f37b6407af9]
llc(_ZN4llvm19SelectionDAGBuilder12getValueImplEPKNS_5ValueE+0xe95)[0x7f37b63a2c55]
llc(_ZN4llvm19SelectionDAGBuilder8getValueEPKNS_5ValueE+0x75)[0x7f37b63a7dd5]</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>