]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
simd/archsimd: correct type and instruction for SaturateToUint8
authorCherry Mui <cherryyz@google.com>
Fri, 19 Dec 2025 19:48:59 +0000 (14:48 -0500)
committerCherry Mui <cherryyz@google.com>
Fri, 19 Dec 2025 22:39:20 +0000 (14:39 -0800)
commitbaa0ae3aaacfcef6ae04beba78a2d2b06776e423
tree457a2e7b82f7cd1cc4992ca83e0bf214580319ac
parentd46c58debba9d194a98388984931645c3aed0e3e
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-on: https://go-review.googlesource.com/c/go/+/731500
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/amd64/simdssa.go
src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
src/cmd/compile/internal/ssa/_gen/simdgenericOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/cmd/compile/internal/ssagen/simdintrinsics.go
src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml
src/simd/archsimd/ops_amd64.go