GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

extend_high_i32x4_s: Wasm SIMD conversion instruction

The extendhighi32x4s SIMD conversion instruction converts lanes 2–3 of a signed v128 i32x4 value interpretation into an i64x2 value interpretation.

The **`extend_high_i32x4_s`** [SIMD conversion instruction](/docs/WebAssembly/Reference/SIMD/conversion) converts lanes 2–3 of a signed [`v128`](/docs/WebAssembly/Reference/Value_types/v128) `i32x4` value interpretation into an `i64x2` value interpretation.

tabbed-taller

```wat interactive-example
(module
(import "console" "log" (func $log (param i64)))
(func $main
v128.const i32x4 2090 2091 2092 2093

i64x2.extend_high_i32x4_s
i64x2.extract_lane 0
call $log ;; log the result
)
(start $main)
)
```

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

## Syntax

```plain
i64x2.extend_high_i32x4_s
```

- `i64x2.extend_high_i32x4_s`
- : The `i64x2.extend_high_i32x4_s` instruction.

### Type

```plain
[input] -> [output]
```

- `input`
- : The input `v128` `i32x4` value interpretation.
- `output`
- : The output `v128` `i64x2` value interpretation.

### Binary encoding

| Instruction | Binary format | Example text => binary |
| --------------------------- | -------------- | ----------------------------------------------- |
| `i64x2.extend_high_i32x4_s` | `0xfd 200:u32` | `i64x2.extend_high_i32x4_s` => `0xfd 0xc8 0x01` |

## Specifications

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"extend_high_i32x4_s: Wasm SIMD conversion instruction". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/SIMD/conversion/extend_high_i32x4_s

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·