aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2023-12-09 19:18:00 +1100
committerJoel Sing <joel@sing.id.au>2024-03-22 04:42:21 +0000
commita6ecdf29e34ddc82b6ed2315aaedf4c4d522b96c (patch)
tree8c1d2eb47fb8059a46dad65adad088e90901c321 /src/testing
parentac0b2f95a5f25e9e331352c93e38f9b29bee9ccc (diff)
downloadgo-a6ecdf29e34ddc82b6ed2315aaedf4c4d522b96c.tar.xz
cmd/internal/obj/riscv: improve register MOVB/MOVH/MOVBU/MOVHU for rva22u64
When GORISCV64 enables rva22u64, use SEXTB for MOVB, SEXTH for MOVH, ZEXTH for MOVHU and ADDUW for MOVWU. These are single instruction alternatives to the two instruction shift sequences that are needed otherwise. Change-Id: Iea5e394f57e238ae8771400a87287c1ee507d44c Reviewed-on: https://go-review.googlesource.com/c/go/+/572736 Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Joel Sing <joel@sing.id.au> Reviewed-by: Mark Ryan <markdryan@rivosinc.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: M Zhuo <mengzhuo1203@gmail.com>
Diffstat (limited to 'src/testing')
0 files changed, 0 insertions, 0 deletions