]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/riscv: avoid obj.Prog rewriting for memory stores
authorJoel Sing <joel@sing.id.au>
Tue, 17 Aug 2021 18:25:05 +0000 (18:25 +0000)
committerJoel Sing <joel@sing.id.au>
Sat, 4 Sep 2021 10:59:00 +0000 (10:59 +0000)
commitba66d62b688d50f4e89b724d1c5b48bb05f8b117
treee3f4909a2c1fc1c7b2694d9538dc75a92ed2597a
parent5ec298d7b07c4a51149f57dece41f0e9c0d701c4
cmd/internal/obj/riscv: avoid obj.Prog rewriting for memory stores

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

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