Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Rename integer-to-integer widening instructions to "extend"? #467

Closed

Description

@ngzhian

Referring to this section https://github.com/WebAssembly/simd/blob/master/proposals/simd/SIMD.md#integer-to-integer-widening, was there a reason why we chose "widen"? That isn't a terminology used in the current Wasm spec, it uses "extend" (e.g. see https://webassembly.github.io/spec/core/appendix/index-instructions.html).

Can we change the names to extend? (Everything else stays the same, only s/widen/extend/.

Activity

  1. tlively commented on Feb 16, 2021

    @tlively
    Member

    SGTM

  2. zeux commented on Feb 17, 2021

    @zeux
    Contributor

    If we switch from widen to extend, what do we do with narrow? Doesn't look like scalar spec has an equivalent.

  3. tlively commented on Feb 17, 2021

    @tlively
    Member

    The scalar spec has i32.wrap_i64, but wrap isn't great for the SIMD version because it saturates rather than wrapping :/

  4. ngzhian commented on Feb 17, 2021

    @ngzhian
    MemberAuthor

    We can keep narrow since there is no equivalent instruction in scalar spec.

  5. tlively commented on Feb 19, 2021

    @tlively
    Member

    There were no strong objections to this renaming at today's meeting. @ngzhian, do you want to put a PR together?

  6. added a commit that references this issue on Feb 19, 2021
    fa022ab
  7. added 6 commits that reference this issue on Feb 23, 2021
    64b8775
    2af0cc7
    bc618a3
    737b206
    3678aa1
    ddca519
  8. added a commit that references this issue on Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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