<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/81244>81244</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [AArch64][GlobalISel] Legalization cycle with shufflevector
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:AArch64,
            llvm:globalisel
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nikic
      </td>
    </tr>
</table>

<pre>
    ```llvm
; RUN: llc -mtriple=aarch64-- -O0 < %s
define <16 x i8> @test(<2 x i8> %arg) {
  %shuffle = shufflevector <2 x i8> %arg, <2 x i8> zeroinitializer, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  ret <16 x i8> %shuffle
}
```
Results in a GlobalISel legalization cycle.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUU9GOmzAQ_JrlxSIyaxPggQcSLlWlqpWu6gcYswH3HBzZ5tq7r6-ApKdr-wOVkBjvaBbv7KBCMMNEVEN-gLxN1BxH5-vJPBmddK5_qWHPt8fa5wvwFngD4sAev30G0TBrNUsv0ZurJRCtUl6Pe5mmLP3CGYgjA8zDpurpbCZaitme_WSmBPHAQPJIIQKWII74VsZc-QGwYlAcNjlbW43z-WyXJi274WfS0Xn2T_nxffmVvDOTiUZZ80r-xm-3EbgKxdEIZHyhFpDdwdWZ4Kb_9CQe7hZ6in8u4Lept90W7Q3c974dHynMNgZmJqbYB-s6ZT9-JcssDYubKho3Mf2iLe2SvhZ9JSqVUJ0VvJBFUQqRjLXMz6RQKypVJoUUmSBJe81VX1FJMktMjRwlR15lGc8l3_VnXqlCZEWuO7nvBUhOF2XsbgnjzvkhMSHMVJcZSplY1ZENa5QRO6WfaOpBNE2zhhIQAY-AuAZZNMM6hAlkFyZvE18vTNrNQwDJrQkxvH0nmmjXv-TeLW8hP7wZAXnLPv3lBfth4vg-qcnsbT3GeA0gGsAT4GkwcZy7nXYXwNN6u-2VXr37TjoCntYxA-BpnfRXAAAA__-zfhr4">