]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: return a bit shift from movcon
authorJoel Sing <joel@sing.id.au>
Thu, 20 Feb 2025 11:55:37 +0000 (22:55 +1100)
committerGopher Robot <gobot@golang.org>
Thu, 3 Apr 2025 13:00:28 +0000 (06:00 -0700)
commit06f82af1837bf77dfb2f337f5bb15b6c3f85a454
tree973b61a557da3ad3a0207eea87a52dd567452bcc
parent4464a7d94f75150764db0f0f23f4d58814f68e1b
cmd/internal/obj/arm64: return a bit shift from movcon

Return the shift in bits from movcon, rather than returning an index.
This allows a number of multiplications to be removed, making the code
more readable. Scale down to an index only when encoding.

Change-Id: I1be91eb526ad95d389e2f8ce97212311551790df
Reviewed-on: https://go-review.googlesource.com/c/go/+/650939
Auto-Submit: Joel Sing <joel@sing.id.au>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/internal/obj/arm64/asm7.go