]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: use X15 for zero value in AVX context
authorCherry Mui <cherryyz@google.com>
Thu, 21 Aug 2025 19:22:57 +0000 (15:22 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 22 Aug 2025 22:45:30 +0000 (15:45 -0700)
commit8d874834f1265a5af1847908861597c95d032bb4
tree73466d891a35e330abb8c0061ded6b162ec3113f
parent4c311aa38f6e354ec4d9f5882a16c36a2e4b0f36
[dev.simd] cmd/compile: use X15 for zero value in AVX context

With the previous CL, the X15 (aliasd with Y15, Z15) register
holds the zero value for the whole register width. Use that in
AVX context when a zero value is needed.

Change-Id: If49b7059bce50c5e86f90bace0eaa830a91fa0fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/698238
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
TryBot-Bypass: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/ssa/_gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/regalloc.go