]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add MIPS MSA LD/ST/LDI support for mips64x
authorMeng Zhuo <mengzhuo1203@gmail.com>
Tue, 3 Mar 2020 15:05:32 +0000 (23:05 +0800)
committerCherry Zhang <cherryyz@google.com>
Wed, 4 Mar 2020 19:06:44 +0000 (19:06 +0000)
commit68fea523fda227ca5fe7a1eadb7542be4b0a840c
tree6f10425d068896956b3bf18084d2f566f992250e
parent588ee7987d7f6be605166872ff8c478aa125bc58
cmd/asm: add MIPS MSA LD/ST/LDI support for mips64x

This CL adding primitive asm support of MIPS MSA by introducing
new sets of register W0-W31 (C_WREG) and 12 new instructions:

* VMOV{B,H,W,D} ADDCONST, WREG  (Vector load immediate)
* VMOV{B,H,W,D} SOREG, WREG     (Vector load)
* VMOV{B,H,W,D} WREG, SOREG     (Vector store)

Ref: MIPS Architecture for Programmers Volume IV-j: The MIPS64 SIMD Architecture Module

Change-Id: I3362c59a73c82c94769c18a19a0bee7e5029217d
Reviewed-on: https://go-review.googlesource.com/c/go/+/215723
Run-TryBot: Meng Zhuo <mengzhuo1203@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/arch/mips.go
src/cmd/asm/internal/asm/testdata/mips64.s
src/cmd/internal/obj/mips/a.out.go
src/cmd/internal/obj/mips/anames.go
src/cmd/internal/obj/mips/anames0.go
src/cmd/internal/obj/mips/asm0.go
src/cmd/internal/obj/mips/list0.go