[go] simd/archsimd: correct type and instruction for SaturateToUint8

2 views
Skip to first unread message

Cherry Mui (Gerrit)

unread,
Dec 19, 2025, 5:39:23 PM (2 days ago) Dec 19
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, David Chase, Go LUCI, golang-co...@googlegroups.com

Cherry Mui submitted the change

Change information

Commit message:
simd/archsimd: correct type and instruction for SaturateToUint8

It should be defined on unsigned types, not signed types, and use
unsigned conversion instructions.
Change-Id: I49694ccdf1d331cfde88591531c358d9886e83e6
Reviewed-by: David Chase <drc...@google.com>
Files:
  • M src/cmd/compile/internal/amd64/simdssa.go
  • M src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
  • M src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
  • M src/cmd/compile/internal/ssa/_gen/simdgenericOps.go
  • M src/cmd/compile/internal/ssa/opGen.go
  • M src/cmd/compile/internal/ssa/rewriteAMD64.go
  • M src/cmd/compile/internal/ssagen/simdintrinsics.go
  • M src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml
  • M src/simd/archsimd/ops_amd64.go
Change size: L
Delta: 9 files changed, 805 insertions(+), 129 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by David Chase
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I49694ccdf1d331cfde88591531c358d9886e83e6
Gerrit-Change-Number: 731500
Gerrit-PatchSet: 2
Gerrit-Owner: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages