]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
cmd/compile: use unsigned constant when folding loads for SIMD ops with constants
authorCherry Mui <cherryyz@google.com>
Tue, 16 Dec 2025 16:16:47 +0000 (11:16 -0500)
committerDavid Chase <drchase@google.com>
Tue, 16 Dec 2025 17:06:04 +0000 (09:06 -0800)
commit3f6eabdf09cd660c7881b75c5dfaef09609ba7e6
tree5fc24e3bb68ca5cf0d3c0896f024c49fec15daad
parenta4b5b92055d24da007ae13c4586aa0a229fa337b
cmd/compile: use unsigned constant when folding loads for SIMD ops with constants

When folding loads into a SIMD op with a constant, in the SSA
rules we use makeValAndOff to create an AuxInt for the constant
and the offset. For the SIMD ops of concern (for now), the
constants are always unsigned. So pass the constant unsigned.

Fixes #76756.

Change-Id: Ia5910e689ff510ce54d3a0c2ed0e950bc54f8862
Reviewed-on: https://go-review.googlesource.com/c/go/+/730420
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/simd/archsimd/_gen/simdgen/gen_simdrules.go