]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add s390x support
authorMichael Munday <munday@ca.ibm.com>
Sat, 19 Mar 2016 04:44:17 +0000 (00:44 -0400)
committerRob Pike <r@golang.org>
Mon, 28 Mar 2016 20:13:17 +0000 (20:13 +0000)
commit85bbabd9c49253846f10d08876f9e15338cfe6b4
treea368bb9380630e373d49b0a621e0754c14a22cea
parentcabf73ffb8f1d15f0509546dec81fb9069ea57d4
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: I7615ac6ecf239e3f347fad9ae1f8eede91742859
Reviewed-on: https://go-review.googlesource.com/20934
Run-TryBot: Rob Pike <r@golang.org>
Reviewed-by: Rob Pike <r@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]