]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: avoid obj.Prog rewriting for immediate splitting
authorJoel Sing <joel@sing.id.au>
Thu, 19 Aug 2021 08:35:12 +0000 (08:35 +0000)
committerJoel Sing <joel@sing.id.au>
Sat, 4 Sep 2021 19:33:01 +0000 (19:33 +0000)
commit2d90df91a8ef00e20d8244c3c39fb0c22c382161
tree90c205b9dc16c88202bc5cf79d54f7b6148bbb9f
parent5c224ec92102d7803c03ed2b482a68fad91b954b
cmd/internal/obj/riscv: avoid obj.Prog rewriting for immediate splitting

Rather than rewriting the obj.Prog for a immediate instructions that need
splitting, generate the appropriate machine instruction sequence directly.

Change-Id: Ie90f0e2a98f97a29281e445c4c3b0c47b793ef4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/344453
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