[go/dev.simd] [dev.simd] simd, cmd/compile: add WASM SIMD first steps

19 views
Skip to first unread message

David Chase (Gerrit)

unread,
Feb 12, 2026, 3:10:34 PMFeb 12
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase has uploaded the change for review

Commit message

[dev.simd] simd, cmd/compile: add WASM SIMD first steps

DO NOT SUBMIT

WIP
Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6

Change diff


Change information

Files:
  • M src/cmd/compile/internal/ssa/_gen/WasmOps.go
  • M src/cmd/compile/internal/ssa/_gen/genericOps.go
  • A src/cmd/compile/internal/ssa/_gen/simdWasm.rules
  • A src/cmd/compile/internal/ssa/_gen/simdWasmops.go
  • A src/cmd/compile/internal/ssa/_gen/simdgenericOps_Wasm.go
  • M src/cmd/compile/internal/ssa/opGen.go
  • M src/cmd/compile/internal/ssa/rewriteWasm.go
  • A src/cmd/compile/internal/ssagen/simdWasmintrinsics.go
  • A src/cmd/compile/internal/wasm/simdssa.go
  • M src/cmd/compile/internal/wasm/ssa.go
  • M src/simd/archsimd/_gen/simdgen/gen_simdTypes.go
  • A src/simd/archsimd/_gen/wasmgen/main.go
  • M src/simd/archsimd/cpu.go
  • M src/simd/archsimd/ops_amd64.go
  • M src/simd/archsimd/ops_internal_amd64.go
  • A src/simd/archsimd/ops_wasm.go
  • M src/simd/archsimd/types_amd64.go
  • A src/simd/archsimd/types_wasm.go
Change size: XL
Delta: 18 files changed, 7536 insertions(+), 314 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 1
Gerrit-Owner: David Chase <drc...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Feb 16, 2026, 2:41:59 PMFeb 16
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #2 to this change.
Following approvals got outdated and were removed:
  • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 2
Gerrit-Owner: David Chase <drc...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Feb 17, 2026, 4:07:10 PMFeb 17
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #3 to this change.
Following approvals got outdated and were removed:
  • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 3
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Feb 17, 2026, 6:23:44 PMFeb 17
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #4 to this change.
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 4
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Feb 19, 2026, 12:12:14 PMFeb 19
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #5 to this change.
Following approvals got outdated and were removed:
  • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 5
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Feb 19, 2026, 1:55:13 PMFeb 19
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #6 to this change.
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 6
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Feb 19, 2026, 3:38:23 PMFeb 19
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #7 to this change.
Following approvals got outdated and were removed:
  • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 7
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Mar 17, 2026, 1:16:27 AMMar 17
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #9 to this change.
Following approvals got outdated and were removed:
  • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDo-Not-Submit
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: dev.simd
Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
Gerrit-Change-Number: 745080
Gerrit-PatchSet: 9
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Mar 24, 2026, 7:00:19 PMMar 24
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

David Chase uploaded new patchset

David Chase uploaded patch set #10 to this change.
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: go
    Gerrit-Branch: dev.simd
    Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
    Gerrit-Change-Number: 745080
    Gerrit-PatchSet: 10
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    David Chase (Gerrit)

    unread,
    Mar 24, 2026, 11:52:23 PMMar 24
    to goph...@pubsubhelper.golang.org, Go LUCI, golang-co...@googlegroups.com

    David Chase voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: dev.simd
    Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
    Gerrit-Change-Number: 745080
    Gerrit-PatchSet: 11
    Gerrit-Owner: David Chase <drc...@google.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Comment-Date: Wed, 25 Mar 2026 03:52:19 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    David Chase (Gerrit)

    unread,
    Mar 25, 2026, 1:13:00 AMMar 25
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    David Chase uploaded new patchset

    David Chase uploaded patch set #12 to this change.
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: newpatchset
      Gerrit-Project: go
      Gerrit-Branch: dev.simd
      Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
      Gerrit-Change-Number: 745080
      Gerrit-PatchSet: 12
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Junyang Shao (Gerrit)

      unread,
      Apr 13, 2026, 3:40:23 PMApr 13
      to David Chase, goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com
      Attention needed from David Chase

      Junyang Shao voted Commit-Queue+1

      Commit-Queue+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • David Chase
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: dev.simd
      Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
      Gerrit-Change-Number: 745080
      Gerrit-PatchSet: 12
      Gerrit-Owner: David Chase <drc...@google.com>
      Gerrit-Reviewer: David Chase <drc...@google.com>
      Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
      Gerrit-Attention: David Chase <drc...@google.com>
      Gerrit-Comment-Date: Mon, 13 Apr 2026 19:40:18 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      David Chase (Gerrit)

      unread,
      Apr 17, 2026, 2:03:26 PMApr 17
      to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
      Attention needed from David Chase

      David Chase uploaded new patchset

      David Chase uploaded patch set #13 to this change.
      Following approvals got outdated and were removed:

      Related details

      Attention is currently required from:
      • David Chase
      Submit Requirements:
        • requirement is not satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        • requirement is not satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: newpatchset
        Gerrit-Project: go
        Gerrit-Branch: dev.simd
        Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
        Gerrit-Change-Number: 745080
        Gerrit-PatchSet: 13
        unsatisfied_requirement
        satisfied_requirement
        open
        diffy

        Cherry Mui (Gerrit)

        unread,
        Apr 17, 2026, 6:42:05 PMApr 17
        to David Chase, goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Junyang Shao, golang-co...@googlegroups.com
        Attention needed from David Chase

        Cherry Mui added 9 comments

        Patchset-level comments
        File-level comment, Patchset 13 (Latest):
        Cherry Mui . resolved

        First round of review. Looks good overall. Thanks.

        File src/cmd/compile/internal/ssa/_gen/genericOps.go
        Line 757, Patchset 13 (Latest): genericOps = append(genericOps, simdGenericOps()...)
        genericOps = append(genericOps, simdGenericOpsWasm()...)
        Cherry Mui . unresolved

        This suggests that our existing simdGenericOps are still architecture dependent, in that they are generic ops, but corresponding to a specific architecture. Maybe we should rename? Maybe we should find another way to enumerate all generic ops?

        File src/cmd/compile/internal/ssa/_gen/simdgenericOps_Wasm.go
        Line 9, Patchset 13 (Latest): {name: "AndMask8x16", argLength: 2, commutative: true},
        {name: "AndMask16x8", argLength: 2, commutative: true},
        {name: "AndMask32x4", argLength: 2, commutative: true},
        {name: "AndMask64x2", argLength: 2, commutative: true},
        {name: "AndNotMask8x16", argLength: 2},
        {name: "AndNotMask16x8", argLength: 2},
        {name: "AndNotMask32x4", argLength: 2},
        {name: "AndNotMask64x2", argLength: 2},
        Cherry Mui . unresolved

        It looks like Mask types are just int vector types, the same as AMD64. On AMD64 we don't need Mask ops as generic ops. Instead, we just intrinsify Mask8x18.And to AndInt8x16. Can we do the same for Wasm?

        File src/simd/archsimd/_gen/simdgen/gen_simdTypes.go
        Line 158, Patchset 13 (Latest)://go:build goexperiment.simd && amd64
        Cherry Mui . unresolved

        We probably don't want this. See other comments. Some files are available on all architectures, like cpu.go. Other files use _amd64 suffix in the file name as the constraint.

        File src/simd/archsimd/cpu.go
        Line 3, Patchset 13 (Latest)://go:build goexperiment.simd && amd64
        Cherry Mui . unresolved

        The doc comments below says that the features are defined on all architectures, just return false if it is not X86. So I think we should not make this change.

        File src/simd/archsimd/dummy.s
        Line 5, Patchset 13 (Latest)://go:build amd64||wasm
        Cherry Mui . unresolved

        Add a space before and after ||.

        File src/simd/archsimd/ops_amd64.go
        Line 3, Patchset 13 (Latest)://go:build goexperiment.simd && amd64
        Cherry Mui . unresolved

        The build constraint is implied by the file name, so this shouldn't be necessary.

        File src/simd/archsimd/ops_wasm.go
        Line 8, Patchset 13 (Latest):// i8x16.abs
        Cherry Mui . unresolved

        We should format this in the same way as amd64.

        File src/simd/archsimd/types_wasm.go
        Line 302, Patchset 13 (Latest):// Mask8x16 is a 128-bit SIMD vector of 16 int8s.
        Cherry Mui . unresolved

        This is for a vector type, not a mask type.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • David Chase
        Submit Requirements:
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          • requirement is not satisfiedTryBots-Pass
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: go
          Gerrit-Branch: dev.simd
          Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
          Gerrit-Change-Number: 745080
          Gerrit-PatchSet: 13
          Gerrit-Owner: David Chase <drc...@google.com>
          Gerrit-Reviewer: David Chase <drc...@google.com>
          Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
          Gerrit-CC: Cherry Mui <cher...@google.com>
          Gerrit-Attention: David Chase <drc...@google.com>
          Gerrit-Comment-Date: Fri, 17 Apr 2026 22:42:01 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          unsatisfied_requirement
          open
          diffy

          David Chase (Gerrit)

          unread,
          Apr 21, 2026, 3:28:02 PMApr 21
          to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
          Attention needed from Cherry Mui

          David Chase added 7 comments

          Patchset-level comments
          File-level comment, Patchset 14 (Latest):
          David Chase . resolved

          All but two comments addressed so far, want to remail the stack and iterate.

          File src/cmd/compile/internal/ssa/_gen/genericOps.go
          Line 757, Patchset 13: genericOps = append(genericOps, simdGenericOps()...)
          genericOps = append(genericOps, simdGenericOpsWasm()...)
          Cherry Mui . resolved

          This suggests that our existing simdGenericOps are still architecture dependent, in that they are generic ops, but corresponding to a specific architecture. Maybe we should rename? Maybe we should find another way to enumerate all generic ops?

          David Chase

          I think I might want to figure this out in a separate CL, because it will involve coordinating with AMD64 while other changes are in flight.

          File src/simd/archsimd/_gen/simdgen/gen_simdTypes.go
          Line 158, Patchset 13://go:build goexperiment.simd && amd64
          Cherry Mui . resolved

          We probably don't want this. See other comments. Some files are available on all architectures, like cpu.go. Other files use _amd64 suffix in the file name as the constraint.

          David Chase

          Done

          File src/simd/archsimd/cpu.go
          Line 3, Patchset 13://go:build goexperiment.simd && amd64
          Cherry Mui . resolved

          The doc comments below says that the features are defined on all architectures, just return false if it is not X86. So I think we should not make this change.

          David Chase

          Done

          File src/simd/archsimd/dummy.s
          Line 5, Patchset 13://go:build amd64||wasm
          Cherry Mui . resolved

          Add a space before and after ||.

          David Chase

          Done

          File src/simd/archsimd/ops_amd64.go
          Line 3, Patchset 13://go:build goexperiment.simd && amd64
          Cherry Mui . resolved

          The build constraint is implied by the file name, so this shouldn't be necessary.

          David Chase

          Done

          File src/simd/archsimd/types_wasm.go
          Line 302, Patchset 13:// Mask8x16 is a 128-bit SIMD vector of 16 int8s.
          Cherry Mui . resolved

          This is for a vector type, not a mask type.

          David Chase

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Cherry Mui
          Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: go
            Gerrit-Branch: dev.simd
            Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
            Gerrit-Change-Number: 745080
            Gerrit-PatchSet: 14
            Gerrit-Owner: David Chase <drc...@google.com>
            Gerrit-Reviewer: David Chase <drc...@google.com>
            Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
            Gerrit-CC: Cherry Mui <cher...@google.com>
            Gerrit-Attention: Cherry Mui <cher...@google.com>
            Gerrit-Comment-Date: Tue, 21 Apr 2026 19:27:58 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Cherry Mui <cher...@google.com>
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            David Chase (Gerrit)

            unread,
            Apr 21, 2026, 3:32:00 PMApr 21
            to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Cherry Mui

            David Chase uploaded new patchset

            David Chase uploaded patch set #15 to this change.
            Following approvals got outdated and were removed:

            Related details

            Attention is currently required from:
            • Cherry Mui
            Submit Requirements:
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement is not satisfiedReview-Enforcement
              • requirement is not satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: newpatchset
              Gerrit-Project: go
              Gerrit-Branch: dev.simd
              Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
              Gerrit-Change-Number: 745080
              Gerrit-PatchSet: 15
              unsatisfied_requirement
              open
              diffy

              David Chase (Gerrit)

              unread,
              Apr 21, 2026, 3:32:55 PMApr 21
              to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
              Attention needed from Cherry Mui

              David Chase voted Commit-Queue+1

              Commit-Queue+1
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Cherry Mui
              Submit Requirements:
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement is not satisfiedReview-Enforcement
              • requirement is not satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: go
              Gerrit-Branch: dev.simd
              Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
              Gerrit-Change-Number: 745080
              Gerrit-PatchSet: 15
              Gerrit-Owner: David Chase <drc...@google.com>
              Gerrit-Reviewer: David Chase <drc...@google.com>
              Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
              Gerrit-CC: Cherry Mui <cher...@google.com>
              Gerrit-Attention: Cherry Mui <cher...@google.com>
              Gerrit-Comment-Date: Tue, 21 Apr 2026 19:32:52 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              unsatisfied_requirement
              open
              diffy

              David Chase (Gerrit)

              unread,
              Apr 21, 2026, 3:42:04 PMApr 21
              to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
              Attention needed from Cherry Mui and David Chase

              David Chase uploaded new patchset

              David Chase uploaded patch set #16 to this change.
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Cherry Mui
              • David Chase
              Submit Requirements:
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement is not satisfiedReview-Enforcement
              • requirement is not satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: newpatchset
              Gerrit-Project: go
              Gerrit-Branch: dev.simd
              Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
              Gerrit-Change-Number: 745080
              Gerrit-PatchSet: 16
              Gerrit-Owner: David Chase <drc...@google.com>
              Gerrit-Reviewer: David Chase <drc...@google.com>
              Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
              Gerrit-CC: Cherry Mui <cher...@google.com>
              Gerrit-Attention: Cherry Mui <cher...@google.com>
              Gerrit-Attention: David Chase <drc...@google.com>
              unsatisfied_requirement
              open
              diffy

              David Chase (Gerrit)

              unread,
              Apr 23, 2026, 2:21:14 PMApr 23
              to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
              Attention needed from Cherry Mui and David Chase

              David Chase uploaded new patchset

              David Chase uploaded patch set #18 to this change.
              Following approvals got outdated and were removed:
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Cherry Mui
              • David Chase
              Submit Requirements:
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement is not satisfiedReview-Enforcement
              • requirement is not satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: newpatchset
              Gerrit-Project: go
              Gerrit-Branch: dev.simd
              Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
              Gerrit-Change-Number: 745080
              Gerrit-PatchSet: 18
              unsatisfied_requirement
              open
              diffy

              David Chase (Gerrit)

              unread,
              Apr 23, 2026, 2:24:02 PMApr 23
              to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
              Attention needed from Cherry Mui

              David Chase added 1 comment

              File src/cmd/compile/internal/ssa/_gen/simdgenericOps_Wasm.go
              Line 9, Patchset 13: {name: "AndMask8x16", argLength: 2, commutative: true},

              {name: "AndMask16x8", argLength: 2, commutative: true},
              {name: "AndMask32x4", argLength: 2, commutative: true},
              {name: "AndMask64x2", argLength: 2, commutative: true},
              {name: "AndNotMask8x16", argLength: 2},
              {name: "AndNotMask16x8", argLength: 2},
              {name: "AndNotMask32x4", argLength: 2},
              {name: "AndNotMask64x2", argLength: 2},
              Cherry Mui . resolved

              It looks like Mask types are just int vector types, the same as AMD64. On AMD64 we don't need Mask ops as generic ops. Instead, we just intrinsify Mask8x18.And to AndInt8x16. Can we do the same for Wasm?

              David Chase

              Done

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Cherry Mui
              Submit Requirements:
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement is not satisfiedReview-Enforcement
              • requirement is not satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: go
              Gerrit-Branch: dev.simd
              Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
              Gerrit-Change-Number: 745080
              Gerrit-PatchSet: 18
              Gerrit-Owner: David Chase <drc...@google.com>
              Gerrit-Reviewer: David Chase <drc...@google.com>
              Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
              Gerrit-CC: Cherry Mui <cher...@google.com>
              Gerrit-Attention: Cherry Mui <cher...@google.com>
              Gerrit-Comment-Date: Thu, 23 Apr 2026 18:23:58 +0000
              unsatisfied_requirement
              open
              diffy

              David Chase (Gerrit)

              unread,
              Apr 23, 2026, 2:31:56 PMApr 23
              to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
              Attention needed from Cherry Mui and David Chase

              David Chase uploaded new patchset

              David Chase uploaded patch set #19 to this change.
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Cherry Mui
              • David Chase
              Submit Requirements:
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement is not satisfiedReview-Enforcement
              • requirement is not satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: newpatchset
              Gerrit-Project: go
              Gerrit-Branch: dev.simd
              Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
              Gerrit-Change-Number: 745080
              Gerrit-PatchSet: 19
              Gerrit-Owner: David Chase <drc...@google.com>
              Gerrit-Reviewer: David Chase <drc...@google.com>
              Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
              Gerrit-CC: Cherry Mui <cher...@google.com>
              Gerrit-Attention: Cherry Mui <cher...@google.com>
              Gerrit-Attention: David Chase <drc...@google.com>
              unsatisfied_requirement
              open
              diffy

              David Chase (Gerrit)

              unread,
              Apr 23, 2026, 2:37:18 PMApr 23
              to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
              Attention needed from Cherry Mui

              David Chase added 1 comment

              File src/simd/archsimd/ops_wasm.go
              Line 8, Patchset 13:// i8x16.abs
              Cherry Mui . resolved

              We should format this in the same way as amd64.

              David Chase

              Done

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Cherry Mui
              Submit Requirements:
                • requirement is not satisfiedCode-Review
                • requirement satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                • requirement is not satisfiedTryBots-Pass
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: go
                Gerrit-Branch: dev.simd
                Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                Gerrit-Change-Number: 745080
                Gerrit-PatchSet: 19
                Gerrit-Owner: David Chase <drc...@google.com>
                Gerrit-Reviewer: David Chase <drc...@google.com>
                Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                Gerrit-CC: Cherry Mui <cher...@google.com>
                Gerrit-Attention: Cherry Mui <cher...@google.com>
                Gerrit-Comment-Date: Thu, 23 Apr 2026 18:37:14 +0000
                unsatisfied_requirement
                satisfied_requirement
                open
                diffy

                David Chase (Gerrit)

                unread,
                May 4, 2026, 5:06:59 PM (7 days ago) May 4
                to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                Attention needed from Cherry Mui and David Chase

                David Chase uploaded new patchset

                David Chase uploaded patch set #20 to this change.
                Following approvals got outdated and were removed:
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Cherry Mui
                • David Chase
                Submit Requirements:
                • requirement is not satisfiedCode-Review
                • requirement satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                • requirement is not satisfiedTryBots-Pass
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: newpatchset
                Gerrit-Project: go
                Gerrit-Branch: dev.simd
                Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                Gerrit-Change-Number: 745080
                Gerrit-PatchSet: 20
                Gerrit-Owner: David Chase <drc...@google.com>
                Gerrit-Reviewer: David Chase <drc...@google.com>
                Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                Gerrit-CC: Cherry Mui <cher...@google.com>
                Gerrit-Attention: Cherry Mui <cher...@google.com>
                Gerrit-Attention: David Chase <drc...@google.com>
                unsatisfied_requirement
                satisfied_requirement
                open
                diffy

                David Chase (Gerrit)

                unread,
                May 7, 2026, 6:52:50 PM (4 days ago) May 7
                to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                Attention needed from Cherry Mui and David Chase

                David Chase uploaded new patchset

                David Chase uploaded patch set #21 to this change.
                Following approvals got outdated and were removed:
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Cherry Mui
                • David Chase
                Submit Requirements:
                • requirement is not satisfiedCode-Review
                • requirement satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                • requirement is not satisfiedTryBots-Pass
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: newpatchset
                Gerrit-Project: go
                Gerrit-Branch: dev.simd
                Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                Gerrit-Change-Number: 745080
                Gerrit-PatchSet: 21
                unsatisfied_requirement
                satisfied_requirement
                open
                diffy

                Junyang Shao (Gerrit)

                unread,
                May 8, 2026, 2:30:05 PM (3 days ago) May 8
                to David Chase, goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, golang-co...@googlegroups.com
                Attention needed from Cherry Mui and David Chase

                Junyang Shao added 5 comments

                File src/cmd/compile/internal/ssa/_gen/simdgenericOps.go
                Line 22, Patchset 21 (Latest): {name: "AbsInt8x16", argLength: 1}, // ARCH:amd64
                Junyang Shao . unresolved

                Is this right? Shouldn't it be ARCH:amd64,wasm ?...

                File src/cmd/compile/internal/wasm/simdssa.go
                Line 14, Patchset 21 (Latest): case ssa.OpWasmI8x16AllTrue:
                getValue128(s, v.Args[0])
                s.Prog(v.Op.Asm())
                case ssa.OpWasmV128AnyTrue:
                getValue128(s, v.Args[0])
                s.Prog(v.Op.Asm())
                Junyang Shao . unresolved

                Can merge them?
                There are many other similarly mergeable places too

                File src/simd/archsimd/_gen/simdgen/gen_simdGenericOps.go
                Line 1, Patchset 21 (Latest):// Copyright 2025 The Go Authors. All rights reserved.
                Junyang Shao . unresolved

                Should these belong to CL 772102?

                File src/simd/archsimd/_gen/simdgen/godefs.go
                Line 436, Patchset 21 (Latest): }
                Junyang Shao . unresolved

                Should these belong to CL 772102?

                File src/simd/archsimd/ops_wasm.go
                Line 237, Patchset 21 (Latest):// Bitselect returns the elementwise bitwise selection using mask m.
                Junyang Shao . unresolved

                BitSelect?

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Cherry Mui
                • David Chase
                Submit Requirements:
                  • requirement is not satisfiedCode-Review
                  • requirement is not satisfiedNo-Unresolved-Comments
                  • requirement is not satisfiedReview-Enforcement
                  • requirement satisfiedTryBots-Pass
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: comment
                  Gerrit-Project: go
                  Gerrit-Branch: dev.simd
                  Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                  Gerrit-Change-Number: 745080
                  Gerrit-PatchSet: 21
                  Gerrit-Owner: David Chase <drc...@google.com>
                  Gerrit-Reviewer: David Chase <drc...@google.com>
                  Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                  Gerrit-CC: Cherry Mui <cher...@google.com>
                  Gerrit-Attention: Cherry Mui <cher...@google.com>
                  Gerrit-Attention: David Chase <drc...@google.com>
                  Gerrit-Comment-Date: Fri, 08 May 2026 18:30:01 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  unsatisfied_requirement
                  satisfied_requirement
                  open
                  diffy

                  David Chase (Gerrit)

                  unread,
                  May 8, 2026, 3:53:54 PM (3 days ago) May 8
                  to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                  Attention needed from Cherry Mui and David Chase

                  David Chase uploaded new patchset

                  David Chase uploaded patch set #22 to this change.
                  Following approvals got outdated and were removed:

                  Related details

                  Attention is currently required from:
                  • Cherry Mui
                  • David Chase
                  Submit Requirements:
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    • requirement is not satisfiedTryBots-Pass
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: newpatchset
                    Gerrit-Project: go
                    Gerrit-Branch: dev.simd
                    Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                    Gerrit-Change-Number: 745080
                    Gerrit-PatchSet: 22
                    unsatisfied_requirement
                    open
                    diffy

                    David Chase (Gerrit)

                    unread,
                    May 8, 2026, 5:37:49 PM (3 days ago) May 8
                    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                    Attention needed from Cherry Mui and David Chase

                    David Chase uploaded new patchset

                    David Chase uploaded patch set #23 to this change.
                    Following approvals got outdated and were removed:
                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Cherry Mui
                    • David Chase
                    Submit Requirements:
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    • requirement is not satisfiedTryBots-Pass
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: newpatchset
                    Gerrit-Project: go
                    Gerrit-Branch: dev.simd
                    Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                    Gerrit-Change-Number: 745080
                    Gerrit-PatchSet: 23
                    unsatisfied_requirement
                    open
                    diffy

                    David Chase (Gerrit)

                    unread,
                    May 8, 2026, 5:51:09 PM (3 days ago) May 8
                    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                    Attention needed from Cherry Mui and David Chase

                    David Chase uploaded new patchset

                    David Chase uploaded patch set #24 to this change.
                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Cherry Mui
                    • David Chase
                    Submit Requirements:
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    • requirement is not satisfiedTryBots-Pass
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: newpatchset
                    Gerrit-Project: go
                    Gerrit-Branch: dev.simd
                    Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                    Gerrit-Change-Number: 745080
                    Gerrit-PatchSet: 24
                    unsatisfied_requirement
                    open
                    diffy

                    David Chase (Gerrit)

                    unread,
                    May 8, 2026, 5:52:29 PM (3 days ago) May 8
                    to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
                    Attention needed from Cherry Mui and Junyang Shao

                    David Chase added 5 comments

                    File src/cmd/compile/internal/ssa/_gen/simdgenericOps.go
                    Line 22, Patchset 21: {name: "AbsInt8x16", argLength: 1}, // ARCH:amd64
                    Junyang Shao . resolved

                    Is this right? Shouldn't it be ARCH:amd64,wasm ?...

                    David Chase

                    It should, if Wasm had that instruction, but it does not. Floating point only.

                    vunopf𝑁x𝑀 ::= abs | neg | sqrt | ceil | floor | trunc | nearest

                    File src/cmd/compile/internal/wasm/simdssa.go
                    Line 14, Patchset 21: case ssa.OpWasmI8x16AllTrue:

                    getValue128(s, v.Args[0])
                    s.Prog(v.Op.Asm())
                    case ssa.OpWasmV128AnyTrue:
                    getValue128(s, v.Args[0])
                    s.Prog(v.Op.Asm())
                    Junyang Shao . resolved

                    Can merge them?
                    There are many other similarly mergeable places too

                    David Chase

                    This file is all merged now.

                    File src/simd/archsimd/_gen/simdgen/gen_simdGenericOps.go
                    Line 1, Patchset 21:// Copyright 2025 The Go Authors. All rights reserved.
                    Junyang Shao . resolved

                    Should these belong to CL 772102?

                    David Chase

                    It could go there, so I did that. Originally the Musman fixes had not landed yet.

                    The AI-suggested fix is irrelevant and would probably provoke a copyright-test failure, be sure to tell the robot it made a mistake.

                    File src/simd/archsimd/_gen/simdgen/godefs.go
                    Line 436, Patchset 21: }
                    Junyang Shao . resolved

                    Should these belong to CL 772102?

                    David Chase

                    Done

                    File src/simd/archsimd/ops_wasm.go
                    Line 237, Patchset 21:// Bitselect returns the elementwise bitwise selection using mask m.
                    Junyang Shao . resolved

                    BitSelect?

                    David Chase

                    I fixed the declaration/documentation; we might not want this for all the types, but for now it is.

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Cherry Mui
                    • Junyang Shao
                    Submit Requirements:
                      • requirement is not satisfiedCode-Review
                      • requirement satisfiedNo-Unresolved-Comments
                      • requirement is not satisfiedReview-Enforcement
                      • requirement is not satisfiedTryBots-Pass
                      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                      Gerrit-MessageType: comment
                      Gerrit-Project: go
                      Gerrit-Branch: dev.simd
                      Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                      Gerrit-Change-Number: 745080
                      Gerrit-PatchSet: 24
                      Gerrit-Owner: David Chase <drc...@google.com>
                      Gerrit-Reviewer: David Chase <drc...@google.com>
                      Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                      Gerrit-CC: Cherry Mui <cher...@google.com>
                      Gerrit-Attention: Cherry Mui <cher...@google.com>
                      Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                      Gerrit-Comment-Date: Fri, 08 May 2026 21:52:22 +0000
                      Gerrit-HasComments: Yes
                      Gerrit-Has-Labels: No
                      Comment-In-Reply-To: Junyang Shao <shaoj...@google.com>
                      unsatisfied_requirement
                      satisfied_requirement
                      open
                      diffy

                      Cherry Mui (Gerrit)

                      unread,
                      May 8, 2026, 6:06:53 PM (3 days ago) May 8
                      to David Chase, goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Junyang Shao, golang-co...@googlegroups.com
                      Attention needed from David Chase and Junyang Shao

                      Cherry Mui voted and added 6 comments

                      Votes added by Cherry Mui

                      Code-Review+1

                      6 comments

                      Patchset-level comments
                      File-level comment, Patchset 24 (Latest):
                      Cherry Mui . resolved

                      Looks good overall. The compiler change looks good. Haven't looked carfully on the generator. Thanks.

                      File src/cmd/compile/internal/ssa/_gen/AMD64Ops.go
                      Line 1534, Patchset 24 (Latest): simdregmask: fp,
                      Cherry Mui . unresolved

                      Let's use v. (v and fp are equal, just for clarity.)

                      File src/cmd/compile/internal/ssa/_gen/WasmOps.go
                      Line 25, Patchset 24 (Latest): // "R15", // because the register allocator currently has a 64-register limit, exclude a few registers.
                      Cherry Mui . unresolved

                      The limit no longer applies. Maybe we don't need this now.

                      File src/cmd/compile/internal/ssa/regalloc.go
                      Line 689, Patchset 24 (Latest): sourceMask := s.compatRegs(v.Type)
                      if !sourceMask.hasReg(r) && !onWasmStack {
                      // Assign a temporary register that can be copied to the desired destination;
                      // this at least works where it is currently a problem (x86).
                      // This happens processing e.g. ASAN/TSAN with SIMD *simdtype methods.
                      s.setOrig(c, v)
                      s.assignReg(s.allocReg(sourceMask, v), v, c)
                      c = s.curBlock.NewValue1(pos, OpCopy, v.Type, c)
                      }
                      Cherry Mui . unresolved

                      This seems unrelated to this CL? Maybe another CL?

                      File src/cmd/compile/internal/ssagen/intrinsics.go
                      Line 1977, Patchset 24 (Latest): if base.Ctxt.Retpoline {
                      // Note spectre=all implies retpoline which requires binary search instead of table switch.
                      return branchTableImm8(s, idx, intrinsicCall, genOp)
                      }
                      Cherry Mui . unresolved

                      This may be another CL.

                      Line 1990, Patchset 24 (Parent): if base.Flag.Cfg.SpectreIndex {
                      // Potential Spectre vulnerability hardening?
                      idx = s.newValue2(ssa.OpSpectreSliceIndex, t, idx, s.uintptrConstant(255))
                      }
                      Cherry Mui . unresolved

                      For spectre=index but not all, we may need this? Either way, should be another CL.

                      Open in Gerrit

                      Related details

                      Attention is currently required from:
                      • David Chase
                      • Junyang Shao
                      Submit Requirements:
                        • requirement is not satisfiedCode-Review
                        • requirement is not satisfiedNo-Unresolved-Comments
                        • requirement satisfiedReview-Enforcement
                        • requirement is not satisfiedTryBots-Pass
                        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                        Gerrit-MessageType: comment
                        Gerrit-Project: go
                        Gerrit-Branch: dev.simd
                        Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                        Gerrit-Change-Number: 745080
                        Gerrit-PatchSet: 24
                        Gerrit-Owner: David Chase <drc...@google.com>
                        Gerrit-Reviewer: Cherry Mui <cher...@google.com>
                        Gerrit-Attention: David Chase <drc...@google.com>
                        Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                        Gerrit-Comment-Date: Fri, 08 May 2026 22:06:49 +0000
                        Gerrit-HasComments: Yes
                        Gerrit-Has-Labels: Yes
                        unsatisfied_requirement
                        satisfied_requirement
                        open
                        diffy

                        David Chase (Gerrit)

                        unread,
                        May 8, 2026, 8:55:53 PM (3 days ago) May 8
                        to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                        Attention needed from David Chase and Junyang Shao

                        David Chase uploaded new patchset

                        David Chase uploaded patch set #25 to this change.
                        Following approvals got outdated and were removed:
                        Open in Gerrit

                        Related details

                        Attention is currently required from:
                        • David Chase
                        • Junyang Shao
                        Submit Requirements:
                        • requirement is not satisfiedCode-Review
                        • requirement is not satisfiedNo-Unresolved-Comments
                        • requirement satisfiedReview-Enforcement
                        • requirement is not satisfiedTryBots-Pass
                        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                        Gerrit-MessageType: newpatchset
                        Gerrit-Project: go
                        Gerrit-Branch: dev.simd
                        Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                        Gerrit-Change-Number: 745080
                        Gerrit-PatchSet: 25
                        unsatisfied_requirement
                        satisfied_requirement
                        open
                        diffy

                        David Chase (Gerrit)

                        unread,
                        May 8, 2026, 8:58:34 PM (3 days ago) May 8
                        to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
                        Attention needed from Cherry Mui and Junyang Shao

                        David Chase added 5 comments

                        File src/cmd/compile/internal/ssa/_gen/AMD64Ops.go
                        Line 1534, Patchset 24: simdregmask: fp,
                        Cherry Mui . resolved

                        Let's use v. (v and fp are equal, just for clarity.)

                        David Chase

                        Done

                        File src/cmd/compile/internal/ssa/_gen/WasmOps.go
                        Line 25, Patchset 24: // "R15", // because the register allocator currently has a 64-register limit, exclude a few registers.
                        Cherry Mui . resolved

                        The limit no longer applies. Maybe we don't need this now.

                        David Chase

                        Done

                        File src/cmd/compile/internal/ssa/regalloc.go
                        Line 689, Patchset 24: sourceMask := s.compatRegs(v.Type)

                        if !sourceMask.hasReg(r) && !onWasmStack {
                        // Assign a temporary register that can be copied to the desired destination;
                        // this at least works where it is currently a problem (x86).
                        // This happens processing e.g. ASAN/TSAN with SIMD *simdtype methods.
                        s.setOrig(c, v)
                        s.assignReg(s.allocReg(sourceMask, v), v, c)
                        c = s.curBlock.NewValue1(pos, OpCopy, v.Type, c)
                        }
                        Cherry Mui . resolved

                        This seems unrelated to this CL? Maybe another CL?

                        David Chase

                        I moved it into its own CL. The bug, now disappeared, occurred in the "use uint8 for shift distance" CL that has been abandoned, and I can't figure out how to make it happen again.

                        File src/cmd/compile/internal/ssagen/intrinsics.go
                        Line 1977, Patchset 24: if base.Ctxt.Retpoline {

                        // Note spectre=all implies retpoline which requires binary search instead of table switch.
                        return branchTableImm8(s, idx, intrinsicCall, genOp)
                        }
                        Cherry Mui . resolved

                        This may be another CL.

                        David Chase

                        This is bringing this code in line with the main repository. I stole this code to fix the SIMD-retpoline bug there, and then fixed it and tweaked it along the way. Not matching exactly means extra fun for the next merge.

                        Line 1990, Patchset 24 (Parent): if base.Flag.Cfg.SpectreIndex {
                        // Potential Spectre vulnerability hardening?
                        idx = s.newValue2(ssa.OpSpectreSliceIndex, t, idx, s.uintptrConstant(255))
                        }
                        Cherry Mui . resolved

                        For spectre=index but not all, we may need this? Either way, should be another CL.

                        David Chase

                        We did not seem to need this; I could not make it fail without it, and Keith thinks that because it does all of the values, it does not apply. It matches the main repo.

                        Open in Gerrit

                        Related details

                        Attention is currently required from:
                        • Cherry Mui
                        • Junyang Shao
                        Submit Requirements:
                          • requirement is not satisfiedCode-Review
                          • requirement satisfiedNo-Unresolved-Comments
                          • requirement satisfiedReview-Enforcement
                          • requirement is not satisfiedTryBots-Pass
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: go
                          Gerrit-Branch: dev.simd
                          Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                          Gerrit-Change-Number: 745080
                          Gerrit-PatchSet: 25
                          Gerrit-Owner: David Chase <drc...@google.com>
                          Gerrit-Reviewer: Cherry Mui <cher...@google.com>
                          Gerrit-Reviewer: David Chase <drc...@google.com>
                          Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                          Gerrit-Attention: Cherry Mui <cher...@google.com>
                          Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                          Gerrit-Comment-Date: Sat, 09 May 2026 00:58:29 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-Has-Labels: No
                          Comment-In-Reply-To: Cherry Mui <cher...@google.com>
                          unsatisfied_requirement
                          satisfied_requirement
                          open
                          diffy

                          David Chase (Gerrit)

                          unread,
                          May 8, 2026, 9:22:14 PM (3 days ago) May 8
                          to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
                          Attention needed from Cherry Mui, David Chase and Junyang Shao

                          David Chase voted

                          Commit-Queue+1
                          TryBot-Bypass+1
                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Cherry Mui
                          • David Chase
                          • Junyang Shao
                          Submit Requirements:
                            • requirement is not satisfiedCode-Review
                            • requirement satisfiedNo-Unresolved-Comments
                            • requirement satisfiedReview-Enforcement
                            • requirement satisfiedTryBots-Pass
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: go
                            Gerrit-Branch: dev.simd
                            Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                            Gerrit-Change-Number: 745080
                            Gerrit-PatchSet: 25
                            Gerrit-Owner: David Chase <drc...@google.com>
                            Gerrit-Reviewer: Cherry Mui <cher...@google.com>
                            Gerrit-Reviewer: David Chase <drc...@google.com>
                            Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                            Gerrit-Attention: Cherry Mui <cher...@google.com>
                            Gerrit-Attention: David Chase <drc...@google.com>
                            Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                            Gerrit-Comment-Date: Sat, 09 May 2026 01:22:11 +0000
                            Gerrit-HasComments: No
                            Gerrit-Has-Labels: Yes
                            unsatisfied_requirement
                            satisfied_requirement
                            open
                            diffy

                            David Chase (Gerrit)

                            unread,
                            May 8, 2026, 9:22:49 PM (3 days ago) May 8
                            to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
                            Attention needed from Cherry Mui and Junyang Shao

                            David Chase voted TryBot-Bypass+0

                            TryBot-Bypass+0
                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Cherry Mui
                            • Junyang Shao
                            Submit Requirements:
                              • requirement is not satisfiedCode-Review
                              • requirement satisfiedNo-Unresolved-Comments
                              • requirement satisfiedReview-Enforcement
                              • requirement is not satisfiedTryBots-Pass
                              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                              Gerrit-MessageType: comment
                              Gerrit-Project: go
                              Gerrit-Branch: dev.simd
                              Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                              Gerrit-Change-Number: 745080
                              Gerrit-PatchSet: 25
                              Gerrit-Owner: David Chase <drc...@google.com>
                              Gerrit-Reviewer: Cherry Mui <cher...@google.com>
                              Gerrit-Reviewer: David Chase <drc...@google.com>
                              Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                              Gerrit-Attention: Cherry Mui <cher...@google.com>
                              Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                              Gerrit-Comment-Date: Sat, 09 May 2026 01:22:45 +0000
                              Gerrit-HasComments: No
                              Gerrit-Has-Labels: Yes
                              unsatisfied_requirement
                              satisfied_requirement
                              open
                              diffy

                              David Chase (Gerrit)

                              unread,
                              May 8, 2026, 9:51:59 PM (3 days ago) May 8
                              to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
                              Attention needed from Cherry Mui and Junyang Shao

                              David Chase voted and added 1 comment

                              Votes added by David Chase

                              TryBot-Bypass+1

                              1 comment

                              Patchset-level comments
                              File-level comment, Patchset 25 (Latest):
                              David Chase . resolved

                              So tired of the same flaky failures.

                              Open in Gerrit

                              Related details

                              Attention is currently required from:
                              • Cherry Mui
                              • Junyang Shao
                              Submit Requirements:
                                • requirement is not satisfiedCode-Review
                                • requirement satisfiedNo-Unresolved-Comments
                                • requirement satisfiedReview-Enforcement
                                • requirement satisfiedTryBots-Pass
                                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                                Gerrit-MessageType: comment
                                Gerrit-Project: go
                                Gerrit-Branch: dev.simd
                                Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                                Gerrit-Change-Number: 745080
                                Gerrit-PatchSet: 25
                                Gerrit-Owner: David Chase <drc...@google.com>
                                Gerrit-Reviewer: Cherry Mui <cher...@google.com>
                                Gerrit-Reviewer: David Chase <drc...@google.com>
                                Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                                Gerrit-Attention: Cherry Mui <cher...@google.com>
                                Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                                Gerrit-Comment-Date: Sat, 09 May 2026 01:51:55 +0000
                                Gerrit-HasComments: Yes
                                Gerrit-Has-Labels: Yes
                                unsatisfied_requirement
                                satisfied_requirement
                                open
                                diffy

                                Alexander Musman (Gerrit)

                                unread,
                                May 9, 2026, 7:07:15 AM (3 days ago) May 9
                                to David Chase, goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
                                Attention needed from Cherry Mui, David Chase and Junyang Shao

                                Alexander Musman added 1 comment

                                File src/simd/archsimd/slicepart_128.go
                                Line 56, Patchset 26 (Latest):// If s has 16 or more elements, the function is equivalent to LoadInt8x16Slice.
                                Alexander Musman . unresolved

                                I noticed the new slicepart_128.go still has a few stale *Slice references in comments from before the load/store rename. Fixing them would help git auto-merge cleanly regardless of whether this CL or CL 752803 (ARM64 SIMD) lands first:

                                 ```
                                sed -i 's/LoadInt8x16Slice/LoadInt8x16/g; s/LoadInt16x8Slice/LoadInt16x8/g; s/LoadUint8x16Slice/LoadUint8x16/g; s/LoadUint16x8Slice/LoadUint16x8/g; s/x\.StoreSlice/x.Store/g' src/simd/archsimd/slicepart_128.go
                                ```
                                 Lines 56, 109, 161, 194, 228, 253.
                                Open in Gerrit

                                Related details

                                Attention is currently required from:
                                • Cherry Mui
                                • David Chase
                                • Junyang Shao
                                Submit Requirements:
                                  • requirement is not satisfiedCode-Review
                                  • requirement is not satisfiedNo-Unresolved-Comments
                                  • requirement satisfiedReview-Enforcement
                                  • requirement satisfiedTryBots-Pass
                                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                                  Gerrit-MessageType: comment
                                  Gerrit-Project: go
                                  Gerrit-Branch: dev.simd
                                  Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                                  Gerrit-Change-Number: 745080
                                  Gerrit-PatchSet: 26
                                  Gerrit-Owner: David Chase <drc...@google.com>
                                  Gerrit-Reviewer: Cherry Mui <cher...@google.com>
                                  Gerrit-Reviewer: David Chase <drc...@google.com>
                                  Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                                  Gerrit-CC: Alexander Musman <alexande...@gmail.com>
                                  Gerrit-Attention: Cherry Mui <cher...@google.com>
                                  Gerrit-Attention: David Chase <drc...@google.com>
                                  Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                                  Gerrit-Comment-Date: Sat, 09 May 2026 11:07:08 +0000
                                  Gerrit-HasComments: Yes
                                  Gerrit-Has-Labels: No
                                  unsatisfied_requirement
                                  satisfied_requirement
                                  open
                                  diffy

                                  David Chase (Gerrit)

                                  unread,
                                  4:56 PM (6 hours ago) 4:56 PM
                                  to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                                  Attention needed from Cherry Mui, David Chase and Junyang Shao

                                  David Chase uploaded new patchset

                                  David Chase uploaded patch set #28 to this change.
                                  Following approvals got outdated and were removed:
                                  Open in Gerrit

                                  Related details

                                  Attention is currently required from:
                                  • Cherry Mui
                                  • David Chase
                                  • Junyang Shao
                                  Submit Requirements:
                                    • requirement is not satisfiedCode-Review
                                    • requirement is not satisfiedNo-Unresolved-Comments
                                    • requirement is not satisfiedReview-Enforcement
                                    • requirement is not satisfiedTryBots-Pass
                                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                                    Gerrit-MessageType: newpatchset
                                    Gerrit-Project: go
                                    Gerrit-Branch: dev.simd
                                    Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                                    Gerrit-Change-Number: 745080
                                    Gerrit-PatchSet: 28
                                    unsatisfied_requirement
                                    open
                                    diffy

                                    David Chase (Gerrit)

                                    unread,
                                    5:02 PM (6 hours ago) 5:02 PM
                                    to goph...@pubsubhelper.golang.org, golang...@luci-project-accounts.iam.gserviceaccount.com, Alexander Musman, Cherry Mui, Junyang Shao, golang-co...@googlegroups.com
                                    Attention needed from Alexander Musman, Cherry Mui and Junyang Shao

                                    David Chase added 1 comment

                                    File src/simd/archsimd/slicepart_128.go
                                    Line 56, Patchset 26:// If s has 16 or more elements, the function is equivalent to LoadInt8x16Slice.
                                    Alexander Musman . resolved

                                    I noticed the new slicepart_128.go still has a few stale *Slice references in comments from before the load/store rename. Fixing them would help git auto-merge cleanly regardless of whether this CL or CL 752803 (ARM64 SIMD) lands first:

                                     ```
                                    sed -i 's/LoadInt8x16Slice/LoadInt8x16/g; s/LoadInt16x8Slice/LoadInt16x8/g; s/LoadUint8x16Slice/LoadUint8x16/g; s/LoadUint16x8Slice/LoadUint16x8/g; s/x\.StoreSlice/x.Store/g' src/simd/archsimd/slicepart_128.go
                                    ```
                                     Lines 56, 109, 161, 194, 228, 253.
                                    David Chase

                                    Done

                                    Open in Gerrit

                                    Related details

                                    Attention is currently required from:
                                    • Alexander Musman
                                    • Cherry Mui
                                    • Junyang Shao
                                    Submit Requirements:
                                      • requirement is not satisfiedCode-Review
                                      • requirement satisfiedNo-Unresolved-Comments
                                      • requirement is not satisfiedReview-Enforcement
                                      • requirement is not satisfiedTryBots-Pass
                                      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                                      Gerrit-MessageType: comment
                                      Gerrit-Project: go
                                      Gerrit-Branch: dev.simd
                                      Gerrit-Change-Id: Ifbbe7f5a705799a77b4f0092042f02e1b31e9fd6
                                      Gerrit-Change-Number: 745080
                                      Gerrit-PatchSet: 28
                                      Gerrit-Owner: David Chase <drc...@google.com>
                                      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
                                      Gerrit-Reviewer: David Chase <drc...@google.com>
                                      Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
                                      Gerrit-CC: Alexander Musman <alexande...@gmail.com>
                                      Gerrit-Attention: Cherry Mui <cher...@google.com>
                                      Gerrit-Attention: Alexander Musman <alexande...@gmail.com>
                                      Gerrit-Attention: Junyang Shao <shaoj...@google.com>
                                      Gerrit-Comment-Date: Mon, 11 May 2026 21:02:26 +0000
                                      Gerrit-HasComments: Yes
                                      Gerrit-Has-Labels: No
                                      Comment-In-Reply-To: Alexander Musman <alexande...@gmail.com>
                                      unsatisfied_requirement
                                      satisfied_requirement
                                      open
                                      diffy
                                      Reply all
                                      Reply to author
                                      Forward
                                      0 new messages