]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/mips: use more appropriate register types for OP_FRRR/OP_SRR
authorJoel Sing <joel@sing.id.au>
Fri, 28 Jul 2023 16:03:38 +0000 (02:03 +1000)
committerGopher Robot <gobot@golang.org>
Mon, 31 Jul 2023 18:05:11 +0000 (18:05 +0000)
commit789980ec0e4f6512cd021d238e6c8e309a7e1cf2
treecc03be02f047524e1e360dd0a248c05e41905464
parent48f431ee3cb8c256292c1bab3468aa3de70da935
cmd/internal/obj/mips: use more appropriate register types for OP_FRRR/OP_SRR

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

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