]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add s390x support
authorMichael Munday <munday@ca.ibm.com>
Tue, 29 Mar 2016 15:39:33 +0000 (11:39 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 30 Mar 2016 05:25:49 +0000 (05:25 +0000)
commit354e9778a3327e125ed99e86d7b6e648ed0ccd53
tree64e982c3c3f9c934aea33d706d38f465f7d56221
parent268c31870a05374065965cdbaa56e8320fc33765
cmd/asm: add s390x support

s390x doesn't introduce any new assembly syntax. There are a few
instructions which require the operands to be reordered, notably
the storage-storage instructions that put the length into From3 so
that the memory operands can be put into From and To.

The assembly test currently covers a subset of instructions but
tries to hit edge cases as much as possible. Unlike the other ports
it can be linked as an executable to make disassembling it easy.
It would be nice to autogenerate it at some point in the future.

Change-Id: I8dd542c34b9e450b8129d46693a5acb0ded791ce
Reviewed-on: https://go-review.googlesource.com/21253
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/arch/s390x.go [new file with mode: 0644]
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/endtoend_test.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/testdata/s390x.s [new file with mode: 0644]