]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: handle MOV rewrites in separate pass
authorJoel Sing <joel@sing.id.au>
Tue, 31 Dec 2019 14:28:22 +0000 (01:28 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 4 Jan 2020 04:10:21 +0000 (04:10 +0000)
commit24902c5be6ba2eac6919879d2e5cb0a7bdadf91c
tree0a6ad4c8ec5a1a693a77517cba878448f8457501
parent2ee2c6232c3cb7e2927b964701a81c1591c410db
cmd/internal/obj/riscv: handle MOV rewrites in separate pass

Handle the rewriting of MOV pseudo-instructions in a separate pass. This allows
AMOV to be more readily used by other code, including AGETCALLERPC and ARET
implementations.

Updates #27532

Change-Id: Iea794121210048ed23ed0fb8f3c5e3cd5354a311
Reviewed-on: https://go-review.googlesource.com/c/go/+/212758
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/obj/riscv/obj.go