diff options
| author | Xiaolin Zhao <zhaoxiaolin@loongson.cn> | 2024-12-13 18:00:09 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-03-06 08:15:51 -0800 |
| commit | 53d689ce996fedbef50cf50aab57e54efe0711fb (patch) | |
| tree | a8b503400a34b82a1ac6dabfb20574e8fd7dc1a1 /src/cmd/asm | |
| parent | 3aef716168475c9cdc508c5afd71782a8c2b5506 (diff) | |
| download | go-53d689ce996fedbef50cf50aab57e54efe0711fb.tar.xz | |
cmd/internal/obj/loong64: add {V,XV}ILV{L/H}.{B/H/W/D} instructions support
Go asm syntax:
VILV{L/H}{B/H/W/V} VK, VJ, VD
XVILV{L/H}{B/H/W/V} XK, XJ, XD
Equivalent platform assembler syntax:
vilv{l/h}.{b/h/w/d} vd, vj, vk
xvilv{l/h}.{b/h/w/d} xd, xj, xk
Change-Id: I40e21737649d9fdbbc9a423e859f4c0a56d069fb
Reviewed-on: https://go-review.googlesource.com/c/go/+/635936
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Junyang Shao <shaojunyang@google.com>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/loong64enc1.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/loong64enc1.s b/src/cmd/asm/internal/asm/testdata/loong64enc1.s index c3d1908e75..bb16f874f6 100644 --- a/src/cmd/asm/internal/asm/testdata/loong64enc1.s +++ b/src/cmd/asm/internal/asm/testdata/loong64enc1.s @@ -719,3 +719,21 @@ lable2: XVSUBHU $14, X1, X2 // 22b88c76 XVSUBWU $15, X1, X2 // 223c8d76 XVSUBVU $16, X1, X2 // 22c08d76 + + // [X]VILV{L/H}{B,H,W,V} instructions + VILVLB V1, V2, V3 // 43041a71 + VILVLH V1, V2, V3 // 43841a71 + VILVLW V1, V2, V3 // 43041b71 + VILVLV V1, V2, V3 // 43841b71 + VILVHB V1, V2, V3 // 43041c71 + VILVHH V1, V2, V3 // 43841c71 + VILVHW V1, V2, V3 // 43041d71 + VILVHV V1, V2, V3 // 43841d71 + XVILVLB X3, X2, X1 // 410c1a75 + XVILVLH X3, X2, X1 // 418c1a75 + XVILVLW X3, X2, X1 // 410c1b75 + XVILVLV X3, X2, X1 // 418c1b75 + XVILVHB X3, X2, X1 // 410c1c75 + XVILVHH X3, X2, X1 // 418c1c75 + XVILVHW X3, X2, X1 // 410c1d75 + XVILVHV X3, X2, X1 // 418c1d75 |
