MDN self-hosted library · e01.org

WebAssembly SIMD load/store instructions

WebAssembly SIMD load/store instructions.

no runnable cells landing-page upstream source

WebAssembly SIMD load/store instructions.

Load and load lane

  • load
  • : Loads all lanes of a v128 value interpretation with values from a given memory address.
  • load8_lane
  • : Loads a single value from a given memory address into the specified lane of a v128 i8x16 value interpretation.
  • load16_lane
  • : Loads a single value from a given memory address into the specified lane of a v128 i16x8 value interpretation.
  • load32_lane
  • : Loads a single value from a given memory address into the specified lane of a v128 i32x4 value interpretation.
  • load64_lane
  • : Loads a single value from a given memory address into the specified lane of a v128 i64x2 value interpretation.

Load and extend

  • load8x8_s
  • : Loads eight 8-bit integers from a given memory address and sign extends each one to a 16-bit lane, outputting a v128 i16x8 value interpretation.
  • load8x8_u
  • : Loads eight 8-bit integers from a given memory address and zero extends each one to a 16-bit lane, outputting a v128 i16x8 value interpretation.
  • load16x4_s
  • : Loads four 16-bit integers from a given memory address and sign extends each one to a 32-bit lane, outputting a v128 i32x4 value interpretation.
  • load16x4_u
  • : Loads four 16-bit integers from a given memory address and zero extends each one to a 32-bit lane, outputting a v128 i32x4 value interpretation.
  • load32x2_s
  • : Loads two 32-bit integers from a given memory address and sign extends each one to a 64-bit lane, outputting a v128 i64x2 value interpretation.
  • load32x2_u
  • : Loads two 32-bit integers from a given memory address and zero extends each one to a 64-bit lane, outputting a v128 i64x2 value interpretation.

Load and splat

  • load8_splat
  • : Loads a single value from a given memory address into all lanes of a v128 i8x16 value interpretation.
  • load16_splat
  • : Loads a single value from a given memory address into all lanes of a v128 i16x8 value interpretation.
  • load32_splat
  • : Loads a single value from a given memory address into all lanes of a v128 i32x4 value interpretation.
  • load64_splat
  • : Loads a single value from a given memory address into all lanes of a v128 i64x2 value interpretation.

Load and zero-pad

  • load32_zero
  • : Loads a single value from a given memory address into the first lane of a v128 i32x4 value interpretation, and initializes the other lanes to 0.
  • load64_zero
  • : Loads a single value from a given memory address into the first lane of a v128 i64x2 value interpretation, and initializes the other lane to 0.

Store and store lane

  • store
  • : Stores all lanes of a v128 value interpretation at a given memory address.
  • store8_lane
  • : Stores a specified lane of a v128 i8x16 value interpretation at a given memory address.
  • store16_lane
  • : Stores a specified lane of a v128 i16x8 value interpretation at a given memory address.
  • store32_lane
  • : Stores a specified lane of a v128 i32x4 value interpretation at a given memory address.
  • store64_lane
  • : Stores a specified lane of a v128 i64x2 value interpretation at a given memory address.