]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: Add preld{,x} instructions support
authorGuoqi Chen <chenguoqi@loongson.cn>
Fri, 25 Apr 2025 02:53:04 +0000 (10:53 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Tue, 13 May 2025 00:41:20 +0000 (17:41 -0700)
commit3474c52e4b082421aa948eb178279f6a879701e2
tree42582c4270b2cff9a22e7b74e43acd9fc66e096e
parent52624e533fe52329da5ba6ebb9c37712048168e0
cmd/internal/obj/loong64: Add preld{,x} instructions support

Go asm syntax:
PRELD 16(R4), $8
PRELDX (R4)(R5), $8

Equivalent platform assembler syntax:
preld $8, $r4, 16
preldx $8, $r4, $r5

Change-Id: Ie81d22ebaf4153388a7e9d8fa0f618a0ae7a1c9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/671875
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/asm/internal/arch/loong64.go
src/cmd/asm/internal/asm/asm.go
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