The convert_low_i32x4_s SIMD conversion instruction converts the first two lanes of a signed v128 i32x4 value interpretation into an f64x2 value interpretation.
(module
(import "console" "log" (func $log (param f64)))
(func $main
v128.const i32x4 0x3 0x3a 0xa9 0xff
f64x2.convert_low_i32x4_s
f64x2.extract_lane 1
call $log ;; log the result
)
(start $main)
)WebAssembly.instantiateStreaming(fetch("{%wasm-url%}"), { console });value_type.convert_low_i32x4_s
value_typeThe type of value the instruction is being run on. The following v128 value interpretations support convert_low_i32x4_s:
f64x2convert_low_i32x4_sThe convert_low_i32x4_s instruction. Must always be included after the value_type and a period (.).
[input] -> [output]
inputThe input v128 i32x4 value interpretation.
outputThe output v128 f64x2 value interpretation. The first two values of the input i32x4 are included in the output f64x2.
| Instruction | Binary format | Example text => binary |
|---|---|---|
f64x2.convert_low_i32x4_s | 0xfd 254:u32 | f64x2.convert_low_i32x4_s => 0xfd 0xfe 0x01 |