]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj, cmd/asm: reclassify the offset of memory access operations on loong64
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Wed, 24 Sep 2025 09:21:40 +0000 (17:21 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Tue, 28 Oct 2025 01:21:57 +0000 (18:21 -0700)
commit916e682d5167faad1bb961ec28cac74f05f145f7
tree692bd58aadbb0445048aff2838d942c868588a45
parent2835b994fb8c7125180d912a457308d64a30542f
cmd/internal/obj, cmd/asm: reclassify the offset of memory access operations on loong64

This CL also fixes the encoding error of LL/SC[V] instruction and
adds the handling of offset greater than 16 bits in MOV{W/V}P instructions.

Change-Id: I7a8fab4b68a6839da81c5e59af1f42289d00ef61
Reviewed-on: https://go-review.googlesource.com/c/go/+/706435
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/asm/internal/asm/endtoend_test.go
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/asm/internal/asm/testdata/loong64enc3.s
src/cmd/asm/internal/asm/testdata/loong64enc6.s [new file with mode: 0644]
src/cmd/asm/internal/asm/testdata/loong64error.s
src/cmd/internal/obj/loong64/a.out.go
src/cmd/internal/obj/loong64/asm.go