]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: pass obj.As to oaddi rather than an instruction
authorJoel Sing <joel@sing.id.au>
Sun, 8 Jan 2023 18:14:13 +0000 (05:14 +1100)
committerJoel Sing <joel@sing.id.au>
Fri, 28 Apr 2023 18:45:41 +0000 (18:45 +0000)
commit8b67cf0bc6ad657fddcbaaa10729d0086f08f9a9
treeda5102b7ffeeb2ef30fa2be8d61ede2b76dbc610
parent19fd96512c4ff96415cd4dacb5fac1854422e1fa
cmd/internal/obj/arm64: pass obj.As to oaddi rather than an instruction

This simplifies callers, as they do not need to call opirr before calling oaddi.
Additionally, use appropriate types (int16) for registers, which avoids the need
to continually cast.

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