<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 - [InterleavedAccess] Crash with "(castIsValid(op, S, Ty) && "Invalid cast!")" on haswell"
   href="https://bugs.llvm.org/show_bug.cgi?id=34978">34978</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[InterleavedAccess] Crash with "(castIsValid(op, S, Ty) && "Invalid cast!")" on haswell
          </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>enhancement
          </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>igor@azulsystems.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19306" name="attach_19306" title="Reduced test case">attachment 19306</a> <a href="attachment.cgi?id=19306&action=edit" title="Reduced test case">[details]</a></span>
Reduced test case

llc crashes on haswell processors with following message:

Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create,
file /Users/igor/Projects/llvm/lib/IR/Instructions.cpp, line 2565.

Reverting this change fixes the issue:

commit 563f2fdd9270bb57a619e28caffceb7bda297ad3
Author: Michael Zuckerman <<a href="mailto:Michael.zuckerman@intel.com">Michael.zuckerman@intel.com</a>>
Date:   Thu Sep 7 14:02:13 2017 +0000

    [X86][LLVM]Expanding Supports lowerInterleavedLoad() in
X86InterleavedAccess (VF{8|16|32} stride 3).

Reduced test case attached. Use "llc -mcpu=haswell test.ll" to get the crash.</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>