Skip to content

[SIMD] support integer to integer widening #9283

Closed

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.

Activity

  1. tlively commented on Aug 26, 2019

    @tlively
    Member

    Thanks for the request. I expect to do a significant amount of work to bring LLVM+Binaryen+Emscripten up to date with the latest version of the proposal soon.

  2. zhlwang commented on Aug 28, 2019

    @zhlwang

    i8x16.narrow_i16x8_s(a: v128, b: v128) -> v128
    i8x16.narrow_i16x8_u(a: v128, b: v128) -> v128
    i16x8.narrow_i32x4_s(a: v128, b: v128) -> v128
    i16x8.narrow_i32x4_u(a: v128, b: v128) -> v128
    Also the integer to integer narrowing instructions are essential in wasm SIMD code develop.

  3. tlively commented on Oct 15, 2019

    @tlively
    Member

    These instructions are available in 1.38.48 (the current latest), so I'll close this as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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