[go] cmd/compile: use unsigned constant when folding loads for SIMD ops with constants

0 views
Skip to first unread message

David Chase (Gerrit)

unread,
Dec 16, 2025, 12:06:09 PM (16 hours ago) Dec 16
to Cherry Mui, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, golang-co...@googlegroups.com

David Chase submitted the change

Change information

Commit message:
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-by: David Chase <drc...@google.com>
Files:
  • M src/cmd/compile/internal/ssa/_gen/simdAMD64.rules
  • M src/cmd/compile/internal/ssa/rewriteAMD64.go
  • M src/simd/archsimd/_gen/simdgen/gen_simdrules.go
Change size: L
Delta: 3 files changed, 439 insertions(+), 439 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: Ia5910e689ff510ce54d3a0c2ed0e950bc54f8862
Gerrit-Change-Number: 730420
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