<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 --- - Cannot select: intrinsic %llvm.aarch64.neon.sqshrun"
   href="https://llvm.org/bugs/show_bug.cgi?id=28528">28528</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot select: intrinsic %llvm.aarch64.neon.sqshrun
          </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: AArch64
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alina.sbirlea@gmail.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=16735" name="attach_16735" title="Test showing the failure.">attachment 16735</a> <a href="attachment.cgi?id=16735&action=edit" title="Test showing the failure.">[details]</a></span>
Test showing the failure.

We've come across this testcase where the following sequence fails to lower
intrinsic sqshrun.
Fulltest attached (llc test_reduced.ll to reproduce).


  %tmp1906 = add nsw <8 x i32> undef, undef
  %tmp1908 = shufflevector <8 x i32> %tmp1906, <8 x i32> undef, <4 x i32> <i32
0, i32 1, i32 2, i32 3>
  %tmp1909 = call <4 x i16> @llvm.aarch64.neon.sqshrun.v4i16(<4 x i32>
%tmp1908, i32 18) #0
  %tmp1914 = getelementptr inbounds i16, i16* undef, i64 8
  %tmp1915 = bitcast i16* %tmp1914 to <4 x i16>*
  store <4 x i16> %tmp1909, <4 x i16>* %tmp1915, align 16</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>