]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: add [X]VSHUF4I.{B/H/W/D} instructions support
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Mon, 17 Mar 2025 07:56:12 +0000 (15:56 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Wed, 26 Mar 2025 01:02:50 +0000 (18:02 -0700)
commit0095b5d09885390505e679aafee8f3e525b33c9d
treea926b6e4dae08bc93bf82730bcd7ea2001a95b0b
parent87d1833c66aa25a7e495987b066bdd22d1fe3105
cmd/internal/obj/loong64: add [X]VSHUF4I.{B/H/W/D} instructions support

Go asm syntax:
 VSHUF4I{B/H/W/V} $1, V1, V2
XVSHUF4I{B/H/W/V} $2, X1, X2

Equivalent platform assembler syntax:
 vshuf4i.{b/h/w/d} v2, v1, $1
xvshuf4i.{b/h/w/d} x2, x1, $2

Change-Id: I6a847ccbd2c93432d87bd1390b5cf1508da06496
Reviewed-on: https://go-review.googlesource.com/c/go/+/658376
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/asm/internal/asm/endtoend_test.go
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/asm/internal/asm/testdata/loong64error.s [new file with mode: 0644]
src/cmd/internal/obj/loong64/a.out.go
src/cmd/internal/obj/loong64/anames.go
src/cmd/internal/obj/loong64/asm.go