]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: use obj.REG_NONE where appropriate
authorJoel Sing <joel@sing.id.au>
Sat, 7 Jan 2023 07:40:56 +0000 (18:40 +1100)
committerJoel Sing <joel@sing.id.au>
Thu, 23 Feb 2023 06:08:28 +0000 (06:08 +0000)
commit8f3a13de9ac8c207b5bf1258179924dc09df53f2
tree0a81c776af729846b75533ac1b56c1357c103209
parent8aa0175368ec8822f8bf14c89a5a2ba56dc4e0fa
cmd/internal/obj/arm64: use obj.REG_NONE where appropriate

When referring to an unspecified register, use obj.REG_NONE rather than 0.
This has the same result but is more readable.

Change-Id: I56b541a3abc3c2c0e3ce1de21a624da0b21c485a
Reviewed-on: https://go-review.googlesource.com/c/go/+/461137
Reviewed-by: Eric Fang <eric.fang@arm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/arm64/asm7.go