]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/riscv: simplify rewriteMOV
authorJoel Sing <joel@sing.id.au>
Sat, 21 Aug 2021 04:30:29 +0000 (04:30 +0000)
committerJoel Sing <joel@sing.id.au>
Wed, 8 Sep 2021 05:32:14 +0000 (05:32 +0000)
commitf5bdbf311c3c28fd7cdb8ce31b272deb3feb6f64
tree6ed2f5a850f2decc246f20fb66209710bb971c80
parentbab79dd3627a9c5d4b43ac3f3c2eba4a1f04b813
cmd/internal/obj/riscv: simplify rewriteMOV

Rewrite and simplify the rewriteMOV function in preparation for eliminating it
entirely. Improve some error messages in the process.

Change-Id: Id9a77be5174d46cc23651930c2e9068ee6555690
Reviewed-on: https://go-review.googlesource.com/c/go/+/344458
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/asm/internal/asm/testdata/riscv64error.s
src/cmd/internal/obj/riscv/obj.go