]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/riscv: avoid obj.Prog rewriting for address to register loads
authorJoel Sing <joel@sing.id.au>
Fri, 20 Aug 2021 17:04:35 +0000 (17:04 +0000)
committerJoel Sing <joel@sing.id.au>
Sat, 4 Sep 2021 19:33:36 +0000 (19:33 +0000)
commit37e9c1d6fe453458a203595277147ae713650a3a
tree2a37afcb8f8a35bb029f0743c78824f3d65b5377
parent2d90df91a8ef00e20d8244c3c39fb0c22c382161
cmd/internal/obj/riscv: avoid obj.Prog rewriting for address to register loads

Rather than rewriting the obj.Prog for a MOV pseudo-instruction targeting
an address to register load, generate the appropriate machine instruction
sequence directly.

Change-Id: I507195b6d24ff3253eadcc807ddbe27dca97d220
Reviewed-on: https://go-review.googlesource.com/c/go/+/344456
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/riscv/obj.go