]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: move register encoding into opldrr/opstrr
authorJoel Sing <joel@sing.id.au>
Mon, 27 Feb 2023 07:23:42 +0000 (18:23 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 25 Mar 2025 13:00:40 +0000 (06:00 -0700)
commitfd0805b660890d791a7bcfb76491dd6f87b69641
treeb563a1cc3c77ed303464cc72733e537cd8dd75b7
parentac8474c0a2f1428125bae63749e14e96d8690d38
cmd/internal/obj/arm64: move register encoding into opldrr/opstrr

Rather than having register encoding knowledge in each caller of opldrr/opstrr
(and in a separate olsxrr function), pass the registers into opldrr/opstrr and
let them handle the encoding. This reduces duplication and improves readability.

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