<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 - wasm32: Opcodes for some SIMD float operations disagree with current spec"
   href="https://bugs.llvm.org/show_bug.cgi?id=39272">39272</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wasm32: Opcodes for some SIMD float operations disagree with current spec
          </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>Windows NT
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alex@crichton.co
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, tlively@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In testing the wasm32 SIMD support of LLVM, I ran across a few opcodes that
looked like they weren't currently matching the spec online. It looks like the
issue is that after the SIMD leading opcode (0xfd) it's expected that the SIMD
operation is encoded as a leb128 integer, but currently LLVM is just emitting
an extra byte.

For example f64x2.abs -
<a href="https://github.com/llvm-mirror/llvm/blob/d069d45aa888c5b8a44521d4cade32767c09b35e/test/MC/WebAssembly/simd-encodings.s#L382-L383">https://github.com/llvm-mirror/llvm/blob/d069d45aa888c5b8a44521d4cade32767c09b35e/test/MC/WebAssembly/simd-encodings.s#L382-L383</a>
- is encoded as 0xfd,0x80, but I think that should be 0xfd,0x80,0x01 with
leb128 encoding.

I haven't currently got a super minimal test case for this, but I can
definitely make one if necessary!</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>