]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: add a detection for Neoverse(N3, V3, V3ae) cores
authorfanzha02 <fannie.zhang@arm.com>
Mon, 7 Apr 2025 10:12:06 +0000 (10:12 +0000)
committerKeith Randall <khr@google.com>
Mon, 14 Apr 2025 16:26:16 +0000 (09:26 -0700)
commitadf21a9b56f3498385152d701ddd0e8679fe57ed
tree12b90559f2aa29c39fc32c77e61f93fe9e423a83
parente278a789b61ffbdf4f6ca8accf43ab04148cd551
internal/cpu: add a detection for Neoverse(N3, V3, V3ae) cores

The memmove implementation relies on the variable
runtime.arm64UseAlignedLoads to select fastest code
path. Considering Neoverse N3, V3 and V3ae cores
prefer aligned loads, this patch adds code to detect
them for memmove performance.

Change-Id: I7266fc35d8b2c15ff516c592b987bafacb82b620
Reviewed-on: https://go-review.googlesource.com/c/go/+/664038
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
src/internal/cpu/cpu_arm64_hwcap.go