]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: avoid obj.Prog rewriting for memory loads
authorJoel Sing <joel@sing.id.au>
Fri, 19 Mar 2021 14:09:59 +0000 (14:09 +0000)
committerJoel Sing <joel@sing.id.au>
Sat, 4 Sep 2021 10:58:11 +0000 (10:58 +0000)
commit5ec298d7b07c4a51149f57dece41f0e9c0d701c4
treea78d76adf847be7eac8b576b6115fa64b23d2248
parent0b66310924ace48c15a3140843576d5b069762de
cmd/internal/obj/riscv: avoid obj.Prog rewriting for memory loads

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

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