]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: move register encoding into oprrr
authorJoel Sing <joel@sing.id.au>
Sat, 7 Jan 2023 07:46:37 +0000 (18:46 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 25 Mar 2025 11:08:38 +0000 (04:08 -0700)
commitf90f3cfcf71fa1226572f87035323fca0ab33e52
tree6840b9cdb198620c6ce8806ac897a45fa4a71799
parentdab10bca372165432931a44d9783a82db7d1a33f
cmd/internal/obj/arm64: move register encoding into oprrr

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

Change-Id: Iab6c70f7796b7a8c071419654b8a5686aeee8c1b
Reviewed-on: https://go-review.googlesource.com/c/go/+/471518
Reviewed-by: Fannie Zhang <Fannie.Zhang@arm.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/arm64/asm7.go