]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/ppc64: fix rebuilding of optab for asm tests
authorPaul E. Murphy <murp@ibm.com>
Tue, 12 Sep 2023 20:39:56 +0000 (15:39 -0500)
committerPaul Murphy <murp@ibm.com>
Fri, 29 Sep 2023 14:58:44 +0000 (14:58 +0000)
commit9bfaaa15fd38f10ba7f11eb6cc67c6dfb21454e6
tree2dd6b8000656744d1b2ebc74c2c3ece0811aac71
parent20944cf0665a5aec6abab802875a9700592b5391
cmd/internal/obj/ppc64: fix rebuilding of optab for asm tests

The end-to-end asm tests reinitialize the assembler using different
GOPPC64 values. This caused duplicate entries to amass from the
prefix and generated optab entries. This bug only affects the
asm end-to-end tests.

On reinitialization, optab contains the previous prefixedOptab
and optabGen entries, not just the initial values. Rework the
initialization to avoid the stale optab entries.

Change-Id: I310499915a5272ed0174ed8135d60788e6b4b716
Reviewed-on: https://go-review.googlesource.com/c/go/+/528316
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/internal/obj/ppc64/asm9.go
src/cmd/internal/obj/ppc64/asm_test.go