]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: fix the usage of offset in the instructions [X]VLDREPL...
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Fri, 29 Aug 2025 08:20:16 +0000 (16:20 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 4 Sep 2025 16:22:33 +0000 (09:22 -0700)
commitb8cc907425c4b851d2b941cf689cf8177ea8a153
treec6d99ae0cff79fbfa55dcaa69928a1c24ffc474a
parent8c27a808905b0611b0a7b7bbff08819206be3b86
cmd/internal/obj/loong64: fix the usage of offset in the instructions [X]VLDREPL.{B/H/W/D}

The previously defined usage of offset was ambiguous and not easy to understand.
For example, to fetch 4 bytes of data from the address base+8 and
broadcast it to each word element of vector register V5, the assembly
implementation is as follows:
previous: VMOVQ 2(base), V5.W4
current:  VMOVQ 8(base), V5.W4

Change-Id: I8bc84e35033ab63bd10f4c61618789f94314f78c
Reviewed-on: https://go-review.googlesource.com/c/go/+/699875
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/internal/obj/loong64/asm.go
src/cmd/internal/obj/loong64/doc.go
src/internal/chacha8rand/chacha8_loong64.s