MDN self-hosted library · e01.org

extend_high_i8x16_u: Wasm SIMD conversion instruction

The extendhighi8x16u SIMD conversion instruction converts lanes 8–15 of an unsigned v128 i8x16 value interpretation into an i16x8 value interpretation.

no runnable cells webassembly-instruction upstream source

The extend_high_i8x16_u SIMD conversion instruction converts lanes 8–15 of an unsigned v128 i8x16 value interpretation into an i16x8 value interpretation.

tabbed-taller

```wat interactive-example (module (import "console" "log" (func $log (param i32))) (func $main v128.const i8x16 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32

i16x8.extend_high_i8x16_u
i16x8.extract_lane_s 0
call $log ;; log the result

) (start $main) )


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

Syntax

i16x8.extend_high_i8x16_u
  • i16x8.extend_high_i8x16_u
  • : The i16x8.extend_high_i8x16_u instruction.

Type

[input] -> [output]
  • input
  • : The input v128 i8x16 value interpretation.
  • output
  • : The output v128 i16x8 value interpretation.

Binary encoding

Instruction Binary format Example text => binary
i16x8.extend_high_i8x16_u 0xfd 138:u32 i16x8.extend_high_i8x16_u => 0xfd 0x8a 0x01

Specifications

Browser compatibility