]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix encoding of ADR/ADRP instruction
authorCherry Mui <cherryyz@google.com>
Mon, 23 May 2022 19:15:32 +0000 (15:15 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 23 May 2022 21:58:35 +0000 (21:58 +0000)
commite6b5949a75acbbac54c120520d9720b830cb114e
tree839803e5ff64a8f66a6ece926bee170c0a2f50d2
parent715ba65563f9d2a6ecd349944b726a64f9aabeca
cmd/internal/obj/arm64: fix encoding of ADR/ADRP instruction

The referenced address is p.From, not p.To.

Separate from CL 403980, as this is a bug fix. Also, ADR is used
in CL 387336. This is needed to make it work correctly.

Change-Id: Ie0baaeb359b9a7f233458d2becf25dc6a1f8ecbf
Reviewed-on: https://go-review.googlesource.com/c/go/+/407884
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/asm/internal/arch/arm64.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/parse.go
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/asm7.go