extmul_low_i32x4_s: Wasm SIMD arithmetic instruction
The extmullowi32x4s SIMD arithmetic instruction takes lanes 0–1 of two signed v128 i32x4 value interpretations, multiplies the values in the corresponding lanes, and outputs the result of those operations into an i64x2 value interpretation.
The **`extmul_low_i32x4_s`** [SIMD arithmetic instruction](/docs/WebAssembly/Reference/SIMD/arithmetic) takes lanes 0–1 of two signed [`v128`](/docs/WebAssembly/Reference/Value_types/v128) `i32x4` value interpretations, multiplies the values in the corresponding lanes, and outputs the result of those operations into an `i64x2` value interpretation.
tabbed-taller
```wat interactive-example
(module
(import "console" "log" (func $log (param i64)))
(func $main
v128.const i32x4 25 25 50 50
v128.const i32x4 20 20 40 40
i64x2.extmul_low_i32x4_s
i64x2.extract_lane 1
call $log ;; log the result
)
(start $main)
)
```
```js interactive-example
WebAssembly.instantiateStreaming(fetch("{%wasm-url%}"), { console });
```
In the above example, lanes 0–1 of the two `i32x4` input values are multiplied together and the products output as an `i64x2`. Lane `0` of the first input is multiplied by lane `0` of the second input, and the product becomes lane `0` of the output, and so on. As a result, each lane of the output contains the value `500` (`25 * 20`).
The `extmul_low_i32x4_s` instruction is a more performant equivalent to passing the results of two [`extend_low_i32x4_s`](/docs/WebAssembly/Reference/SIMD/conversion/extend_low_i32x4_s) instructions into a [`mul`](/docs/WebAssembly/Reference/Numeric/mul) instruction.
In other words:
```wat
(i64x2.extmul_low_i32x4_s
(input1)
(input2)
)
```
is equivalent to
```wat
(i64x2.mul
(i64x2.extend_low_i32x4_s
(input1)
)
(i64x2.extend_low_i32x4_s
(input2)
)
)
```
## Syntax
```plain
i64x2.extmul_low_i32x4_s
```
- `i64x2.extmul_low_i32x4_s`
- : The `i64x2.extmul_low_i32x4_s` instruction.
### Type
```plain
[input1, input2] -> [output]
```
- `input1`
- : The first input `v128` `i32x4` value interpretation.
- `input2`
- : The second input `v128` `i32x4` value interpretation.
- `output`
- : The output `v128` `i64x2` value interpretation.
### Binary encoding
| Instruction | Binary format | Example text => binary |
| -------------------------- | -------------- | ---------------------------------------------- |
| `i64x2.extmul_low_i32x4_s` | `0xfd 220:u32` | `i64x2.extmul_low_i32x4_s` => `0xfd 0xdc 0x01` |
## Specifications
## Browser compatibility
Cite this
"extmul_low_i32x4_s: Wasm SIMD arithmetic instruction". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/SIMD/arithmetic/extmul_low_i32x4_s JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy