]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
cmd/compile, runtime: guard X15 zeroing with GOEXPERIMENT=simd
authorCherry Mui <cherryyz@google.com>
Wed, 26 Nov 2025 15:56:15 +0000 (10:56 -0500)
committerCherry Mui <cherryyz@google.com>
Wed, 26 Nov 2025 22:28:50 +0000 (14:28 -0800)
commitde392823326ab3b572a8a493b813123381c15be9
treeebe89c137cfcf02dab2e9aecf57e426a2901705c
parent86bbea0cfa72041fb4315eb22099b0bc83caa314
cmd/compile, runtime: guard X15 zeroing with GOEXPERIMENT=simd

If simd experiment is not enabled, the compiler doesn't use the
AVX part of the register. So only zero it with the SSE instruction.

Change-Id: Ia3bdf34a9ed273128db2ee0f4f5db6f7cc76a975
Reviewed-on: https://go-review.googlesource.com/c/go/+/724720
Reviewed-by: Junyang Shao <shaojunyang@google.com>
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/ssa.go
src/runtime/asm_amd64.s
src/runtime/race_amd64.s
src/runtime/sys_darwin_amd64.s
src/runtime/sys_dragonfly_amd64.s
src/runtime/sys_freebsd_amd64.s
src/runtime/sys_linux_amd64.s
src/runtime/sys_netbsd_amd64.s
src/runtime/sys_openbsd_amd64.s
src/runtime/sys_windows_amd64.s