Skip to content

[SIMD] support integer to integer widening #9283

@huningxin

Description

@huningxin

WASM SIMD integer to integer widening

  • i16x8.widen_low_i8x16_s(a: v128) -> v128
  • i16x8.widen_high_i8x16_s(a: v128) -> v128
  • i16x8.widen_low_i8x16_u(a: v128) -> v128
  • i16x8.widen_high_i8x16_u(a: v128) -> v128
  • i32x4.widen_low_i16x8_s(a: v128) -> v128
  • i32x4.widen_high_i16x8_s(a: v128) -> v128
  • i32x4.widen_low_i16x8_u(a: v128) -> v128
  • i32x4.widen_high_i16x8_u(a: v128) -> v128

The integer to integer widening instructions are essential to implement some heavily used OpenCV.js universal intrinsics, e.g. v_dotprod, v_reduce_sum and v_mul_expand.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions