]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: refactor maskgen
authorPaul E. Murphy <murp@ibm.com>
Wed, 27 Sep 2023 15:42:37 +0000 (10:42 -0500)
committerPaul Murphy <murp@ibm.com>
Fri, 20 Oct 2023 19:23:58 +0000 (19:23 +0000)
commit566d94fe691c7527d4124ee1f04b3c3a07d1302c
tree1852e3407f91cb3f83bb39bd999372f5ae135ce8
parent693def151adff1af707d82d28f55dba81ceb08e1
cmd/internal/obj/ppc64: refactor maskgen

Refactor maskgen into decodeMask32. This is derived from
from combining encodePPC64RotateMask and isWordRotateMask.

Also, truncate me returned from decodeMask32/64 to
be within range of [0,32/64).

Change-Id: Ie9efff93d400b3066ac85276b1ad3c57c2fcf31b
Reviewed-on: https://go-review.googlesource.com/c/go/+/536298
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/asm9.go