]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/mips: use more appropriate register types for OP_IRR
authorJoel Sing <joel@sing.id.au>
Fri, 28 Jul 2023 10:20:39 +0000 (20:20 +1000)
committerGopher Robot <gobot@golang.org>
Mon, 31 Jul 2023 18:05:08 +0000 (18:05 +0000)
commit48f431ee3cb8c256292c1bab3468aa3de70da935
treec366268f0b179f23201dc50736ae9bc065f826bb
parentf6966577a227ee6a79c91e8901d2a9594d3f8b51
cmd/internal/obj/mips: use more appropriate register types for OP_IRR

Rather than passing registers as uint32, use int16 and cast to uint32 in
the OP_IRR implementation. This allows a large number of casts to be removed
and code simplified at call sites. Also be more consistent with op, register
and value ordering.

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