]> Cypherpunks repositories - gostls13.git/commit
runtime: add benchmark for small-size memmory operation
authorJulian Zhu <julian.oerv@isrc.iscas.ac.cn>
Wed, 18 Jun 2025 09:26:26 +0000 (17:26 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 24 Jul 2025 17:49:11 +0000 (10:49 -0700)
commite84ed3864191fad224ad377054199661c34dd665
tree92b2b4b381719fd424bd0ad36747743319282060
parent18dbe5b941e03a61cebbb441a9e4dfef43adf425
runtime: add benchmark for small-size memmory operation

On RISC-V and MIPS andarchitectures, misaligned load/store is not mandatory for implementations. Therefore, it's important to handle memory operations involving small sizes or data with a remainder when divided by 8 or 4.
This CL add some benchmark for small-size memmory operation, to ensure that SSA rules do not generate unaligned access traps on such architectures.

Change-Id: I6fcdfdb76e9552d5b10df140fa92568ac9468386
Reviewed-on: https://go-review.googlesource.com/c/go/+/682575
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/memmove_test.go