<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Legalization failure for llvm.aarch64.neon.vcvtfp2fxs"
   href="https://llvm.org/bugs/show_bug.cgi?id=28877">28877</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Legalization failure for llvm.aarch64.neon.vcvtfp2fxs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pirama@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16894" name="attach_16894" title="Two sources and .sh to reproduce crash">attachment 16894</a> <a href="attachment.cgi?id=16894&action=edit" title="Two sources and .sh to reproduce crash">[details]</a></span>
Two sources and .sh to reproduce crash

ToT fails legalization for two files in Android (one in pdfium and another in
tiff).  The error is:
    fatal error: error in backend: Do not know how to split this operator's
operand!

In both cases, an llvm.aarch64.neon.vcvtfp2fxs node is involved.

One of the files throws an assert in ReplaceAllUsesWith:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:6308: void
llvm::SelectionDAG::ReplaceAllUsesWith(llvm::SDNode*, llvm:
:SDNode*): Assertion `(!From->hasAnyUseOfValue(i) || From->getValueType(i) ==
To->getValueType(i)) && "Cannot use this version of ReplaceAllUsesWith!"' f
ailed.


Source and .sh files to reproduce crash are attached.</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>