MDN self-hosted library · e01.org

convert_i32x4_s: Wasm SIMD conversion instruction

The converti32x4s SIMD conversion instruction converts the lanes of a signed v128 i32x4 value interpretation into an f32x4 value interpretation.

no runnable cells webassembly-instruction upstream source

The convert_i32x4_s SIMD conversion instruction converts the lanes of a signed v128 i32x4 value interpretation into an f32x4 value interpretation.

tabbed-taller

```wat interactive-example (module (import "console" "log" (func $log (param f32))) (func $main v128.const i32x4 0x3 0x3a 0xa9 0xff

f32x4.convert_i32x4_s
f32x4.extract_lane 3
call $log ;; log the result

) (start $main) )


```js interactive-example
WebAssembly.instantiateStreaming(fetch("{%wasm-url%}"), { console });

Syntax

value_type.convert_i32x4_s
  • value_type
  • : The type of value the instruction is being run on. The following v128 value interpretations support convert_i32x4_s:
    • f32x4
  • convert_i32x4_s
  • : The convert_i32x4_s instruction. Must always be included after the value_type and a period (.).

Type

[input] -> [output]
  • input
  • : The input v128 i32x4 value interpretation.
  • output
  • : The output v128 f32x4 value interpretation.

Binary encoding

Instruction Binary format Example text => binary
f32x4.convert_i32x4_s 0xfd 250:u32 f32x4.convert_i32x4_s => 0xfd 0xfa 0x01

Specifications

Browser compatibility