Skip to content

Wasm SIMD support is missing or broken #40

@Ameobea

Description

@Ameobea

Describe the Bug

wasm-snip fails to parse Wasm that contains SIMD instructions such as v128:

error: failed to parse code section
  caused by found type v128
  caused by expected type i32
  caused by The input WebAssembly is invalid

Steps to Reproduce

  1. Take a Wasm file that uses SIMD instructions (example: https://ameo.link/u/8oc.wasm)
  2. Use it as input for wasm-snip: wasm-snip 8oc.wasm

Additional Context

This might just be a matter of bumping the wasm parsing libraries. However, some other Wasm tooling I use wasm-opt and wasm2wat both require special command line arguments to be passed in order to deal with SIMD.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions