<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 - LegalizeIntegerTypes.cpp:1438: bool llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SDNode *, unsigned int): Assertion `Res.getValueType() == N->getValueType(0) && N->getNumValues() == (IsStrictFp ? 2 : 1) && "Invalid operand expansion"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=46532">46532</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LegalizeIntegerTypes.cpp:1438: bool llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SDNode *, unsigned int): Assertion `Res.getValueType() == N->getValueType(0) && N->getNumValues() == (IsStrictFp ? 2 : 1) && "Invalid operand expansion"' failed.
          </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>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>benny.kra@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>ajcbik@google.com, craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, ntv@google.com, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23669" name="attach_23669" title="Reduced test case">attachment 23669</a> <a href="attachment.cgi?id=23669&action=edit" title="Reduced test case">[details]</a></span>
Reduced test case

This only happens when targeting Haswell.

$ llc < bugpoint-reduced-simplified.ll
llc: llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:1438:
bool llvm::DAGTypeLeg
alizer::PromoteIntegerOperand(llvm::SDNode *, unsigned int): Assertion
`Res.getValueType() == N->getValueType(0) && N->getNumValues
() == (IsStrictFp ? 2 : 1) && "Invalid operand expansion"' 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
1.      Running pass 'Function Pass Manager' on module '<stdin>'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@WhileWithLoopInvariantOperation.21'</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>