diff options
| author | Xiaolin Zhao <zhaoxiaolin@loongson.cn> | 2025-08-29 16:20:16 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-09-04 09:22:33 -0700 |
| commit | b8cc907425c4b851d2b941cf689cf8177ea8a153 (patch) | |
| tree | c6d99ae0cff79fbfa55dcaa69928a1c24ffc474a /src/runtime | |
| parent | 8c27a808905b0611b0a7b7bbff08819206be3b86 (diff) | |
| download | go-b8cc907425c4b851d2b941cf689cf8177ea8a153.tar.xz | |
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>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
