]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/mips: use more appropriate register types for OP_RRR
authorJoel Sing <joel@sing.id.au>
Fri, 28 Jul 2023 09:59:36 +0000 (19:59 +1000)
committerGopher Robot <gobot@golang.org>
Mon, 31 Jul 2023 18:04:35 +0000 (18:04 +0000)
commitf6966577a227ee6a79c91e8901d2a9594d3f8b51
tree978e3946487844e7d0e91e19ffc3803baee4ad5a
parent24af43fa660d212af8b5609ec715b937989eb021
cmd/internal/obj/mips: use more appropriate register types for OP_RRR

Rather than passing registers as uint32, use int16 and cast to uint32 in
the OP_RRR implementation. This allows a large number of casts to be removed
and code simplified at call sites.

Change-Id: I2194ea07a6f89861530cd88c4b60c993bb0fa0c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/514097
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rong Zhang <rongrong@oss.cipunited.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/obj/mips/asm0.go