]> Cypherpunks repositories - gostls13.git/commit
cmd/internal: add MVCIN instruction to s390x assembler
authorRuixin(Peter) Bao <ruixin.bao@ibm.com>
Tue, 7 Apr 2020 13:20:08 +0000 (09:20 -0400)
committerMichael Munday <mike.munday@ibm.com>
Tue, 7 Apr 2020 15:03:09 +0000 (15:03 +0000)
commit553a8626ba04981d362ee5937583d2592b305eae
tree81d96f4e5eee8020fd57b79fcfa65f405703cfd9
parent74d6de03fd7db2c6faa7794620a9bcf0c4f018f2
cmd/internal: add MVCIN instruction to s390x assembler

On s390x, we already have MVCIN opcode in asmz.go,
but we did not use it. This CL uses that opcode and adds MVCIN
instruction.

MVCIN instruction can be used to move data from one storage location
to another while reversing the order of bytes within the field. This
could be useful when transforming data from little-endian to big-endian.

Change-Id: Ifa1a911c0d3442f4a62f91f74ed25b196d01636b
Reviewed-on: https://go-review.googlesource.com/c/go/+/227478
Reviewed-by: Michael Munday <mike.munday@ibm.com>
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/asm/testdata/s390x.s
src/cmd/internal/obj/s390x/a.out.go
src/cmd/internal/obj/s390x/anames.go
src/cmd/internal/obj/s390x/asmz.go