]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: move register encoding into opxrrr
authorJoel Sing <joel@sing.id.au>
Sat, 7 Jan 2023 16:00:21 +0000 (03:00 +1100)
committerJoel Sing <joel@sing.id.au>
Thu, 3 Aug 2023 16:17:47 +0000 (16:17 +0000)
commit499a12009938fe2ffff90775832b9d67ca3e46b2
treed02d6011e4d47cd1ee39384ff3c392b03f90fb35
parent9ff01162295c815c252dec812f6ce983aa90a62b
cmd/internal/obj/arm64: move register encoding into opxrrr

Rather than having register encoding knowledge in each caller of opxrrr,
pass the registers into opxrrr and let it handle the encoding. This reduces
duplication and improves readability.

Change-Id: I202c503465a0169277a0f64340598203c9dcf20c
Reviewed-on: https://go-review.googlesource.com/c/go/+/461140
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/arm64/asm7.go