]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/ppc64,cmd/asm/internal/asm/testdata: fix up ppc64 testcases
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 6 Oct 2020 21:08:31 +0000 (17:08 -0400)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Fri, 16 Oct 2020 12:48:42 +0000 (12:48 +0000)
commite981936855383883edb5fcc85a196c485b15f0f9
treecb7ea7bba97f0b6a07ff3d2beda3ae3b077fcf54
parentaf8748054b40e9a1e529e42a0f83cc2c90a35af6
cmd/internal/obj/ppc64,cmd/asm/internal/asm/testdata: fix up ppc64 testcases

When a fix was made at the end of the last release related to
NOPs, it was discovered that the ppc64.s testcase was out of date
and contained comments that weren't being processed. Essentially the
instructions in that test were being assembled but there was no
verification that the encodings weres correct. The ppc64enc.s file
was mostly complete and included the valid encodings for verification.
This change moves ppc64enc.s to ppc64.s and adds the instructions
that were missing.

This also adds a minor fix to asm9.go on the assembly of the
addex that was discovered during this testing.

Change-Id: Iaada1563b137849ad195fa88f32ecc9ab3e1e95f
Reviewed-on: https://go-review.googlesource.com/c/go/+/260217
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/asm/internal/asm/endtoend_test.go
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/asm/internal/asm/testdata/ppc64enc.s [deleted file]
src/cmd/internal/obj/ppc64/asm9.go