]> Cypherpunks repositories - gostls13.git/commit
simd/archsimd: add Grouped for 256- and 512-bit SaturateTo(U)Int16Concat, and fix...
authorCherry Mui <cherryyz@google.com>
Fri, 19 Dec 2025 20:21:15 +0000 (15:21 -0500)
committerCherry Mui <cherryyz@google.com>
Fri, 19 Dec 2025 22:39:26 +0000 (14:39 -0800)
commit42cda7c1dfcc1ab109766f2016efe2331b3d0aab
tree43ffea03bdb49895af96c105044b5ffc61b56de1
parentbaa0ae3aaacfcef6ae04beba78a2d2b06776e423
simd/archsimd: add Grouped for 256- and 512-bit SaturateTo(U)Int16Concat, and fix type

They operate on 128-bit groups, so name them Grouped to be clear,
and consistent with other grouped operations. Reword the
documentation, mention the grouping only for grouped versions.

Also, SaturateToUnt16Concat(Grouped) is a signed int32 to unsigned
uint16 saturated conversion. The receiver and the parameter should
be signed. The result remains unsigned.

Change-Id: I30e28bc05e07f5c28214c9c6d9d201cbbb183468
Reviewed-on: https://go-review.googlesource.com/c/go/+/731501
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/amd64/simdssa.go
src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
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/godefs.go
src/simd/archsimd/_gen/simdgen/ops/Converts/categories.yaml
src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml
src/simd/archsimd/ops_amd64.go