]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: support additional register to register moves
authorJoel Sing <joel@sing.id.au>
Fri, 23 Oct 2020 16:53:53 +0000 (03:53 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 24 Oct 2020 08:12:11 +0000 (08:12 +0000)
commit4a6782562828779025d1423c9a04bc47ca9c3688
treee8ead687550f79b64df2af2272a6f66263f6eaaf
parent05b6118139d880a5bced23da9d07bdb0db8e7084
cmd/internal/obj/riscv: support additional register to register moves

Add support for signed and unsigned register to register moves of various
sizes. This makes it easier to handle zero and sign extension and will allow
for further changes that improve the compiler optimisations for riscv64.

While here, change the existing register to register moves from obj.Prog
rewriting to instruction generation.

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