]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: avoid obj.Prog rewriting for load instructions
authorJoel Sing <joel@sing.id.au>
Wed, 18 Aug 2021 18:14:52 +0000 (18:14 +0000)
committerJoel Sing <joel@sing.id.au>
Sat, 4 Sep 2021 10:42:46 +0000 (10:42 +0000)
commit8a01010c26a6be4ee94917360749c8f618d68079
treef0fa546ed761901d3085c2c344073d0f79b2d017
parent9cb5716f009ea71564a9ee84d653d7a76adf9926
cmd/internal/obj/riscv: avoid obj.Prog rewriting for load instructions

Rather than rewriting the obj.Prog for a load instruction, generate the
appropriate machine instruction sequence directly.

Change-Id: Iba656dbf2dff2bce02aa221d9a5cad7b7c4630d8
Reviewed-on: https://go-review.googlesource.com/c/go/+/344451
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/internal/obj/riscv/cpu.go
src/cmd/internal/obj/riscv/obj.go