<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] Assertion in DAGCombiner::visitADDLike - Binary operator types must match!"
   href="https://bugs.llvm.org/show_bug.cgi?id=51238">51238</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[DAG] Assertion in DAGCombiner::visitADDLike - Binary operator types must match!
          </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>Reduced from <a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36608">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36608</a>

; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "llvm/test/Transforms/InstCombine/max-of-nots.ll"
target triple = "x86_64-unknown-linux-gnu"

define i8 @umin3_not(i8 %x, i8 %y, i8 %z) {
bb:
   %ny = xor i8 %y, -1
   %nz = xor i8 %z, -1
   %minxz = select i1 undef, i8 undef, i8 %nz
   %cmpyz = icmp ult i8 %ny, %nz
   %B1 = add i1 %cmpyz, true
   %minyz = select i1 %B1, i8 0, i8 %nz
   %r = select i1 undef, i8 %minxz, i8 %minyz
   ret i8 %r
}

E:\llvm>ninja\bin\llc fuzz.ll -o -
        .text
        .file   "max-of-nots.ll"
Assertion failed: N1.getValueType() == N2.getValueType() && N1.getValueType()
== VT && "Binary operator types must match!", file
E:\llvm\llvm-project\llvm\lib\CodeGen\SelectionDAG\SelectionDAG.cpp, line 5605</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>