WebAssembly / simd

Branch of the spec repo scoped to discussion of SIMD in WebAssembly
Other
531 stars 43 forks source link

[interpreter] Implement load lane instructions #428

Closed ngzhian closed 3 years ago

ngzhian commented 3 years ago

v128.load8_lane v128.load16_lane v128.load32_lane v128.load64_lane

Introduce a new ast type, SimdLoadLane, since it takes a lane index immediate, on top of the usual memarg, and also pops a v128 off, in addition to the index.

The exact binary opcodes for these instructions are not yet fixed, I've used the ones currently implement in V8 and LLVM/Binaryen, we can change those later.

Also added a new test generation script, and the generated test files.