<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 - Codegen for shuffle (similar to vget_low_s8) can be improved"
   href="https://bugs.llvm.org/show_bug.cgi?id=50436">50436</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Codegen for shuffle (similar to vget_low_s8) can be improved
          </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: WebAssembly
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>tlively@google.com
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>PTAL <a href="https://godbolt.org/z/bhh56TxYe">https://godbolt.org/z/bhh56TxYe</a>

The use of __builtin_shufflevector is to extract the 8 low uint8_t elements
from a uint8x16_t into a uint8x8_t. It seems like due to the way the vector
extension is used to represent Wasm's SIMD128, we are lowering to a lot of
i8x16.extract_lane and i16x8.replace_lane.

Contrast it with native x86 codegen, which is a no-op (and it is, because it is
extracting the low 64-bits of a 128-bit vector into the low 64-bits).</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>