]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: add LDPTR.{W/D} and STPTR.{W/D} instructions support
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Mon, 25 Aug 2025 07:22:09 +0000 (15:22 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Mon, 1 Sep 2025 01:33:38 +0000 (18:33 -0700)
commit882335e2cbe9b123ba5fa4ee7544e7283e41d07c
tree14d39be3e02713eee076df669f2ce9422700b172
parentd4b17f58695337c7eefa9d066cc51a425842e491
cmd/internal/obj/loong64: add LDPTR.{W/D} and STPTR.{W/D} instructions support

Go asm syntax:
MOVWP 4(R4), R5
MOVVP 8(R4), R5
MOVWP R4, 12(R5)
MOVVP R4, 16(R5)

Equivalent platform assembler syntax:
ldptr.w r5, r4, $1
ldptr.d r5, r4, $2
stptr.w r4, r5, $3
stptr.d r4, r5, $4

Change-Id: I50a341cee2d875cb7c5da9db08b23799c9dc6c64
Reviewed-on: https://go-review.googlesource.com/c/go/+/699055
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/internal/obj/loong64/a.out.go
src/cmd/internal/obj/loong64/anames.go
src/cmd/internal/obj/loong64/asm.go
src/cmd/internal/obj/loong64/doc.go