diff options
| author | Xiaolin Zhao <zhaoxiaolin@loongson.cn> | 2024-09-04 16:19:22 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-09-05 00:48:33 +0000 |
| commit | db07c8607a1da5f618a7a8c2fae3e557dc6cb1af (patch) | |
| tree | e0349a4132b5561d4008cc643a989cf595ecd7d8 /src/cmd/asm | |
| parent | 501b389efc6213eda80eeed2253d3d7f931f3db5 (diff) | |
| download | go-db07c8607a1da5f618a7a8c2fae3e557dc6cb1af.tar.xz | |
cmd/internal/obj/loong64: add support for instructions ANDN and ORN
Go asm syntax:
ANDN/ORN RK, RJ, RD
or ANDN/ORN RK, RD
Equivalent platform assembler syntax:
andn/orn rd, rj, rk
or andn/orn rd, rd, rk
Ref: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
Change-Id: I6d240ecae8f9443811ca450aed3574f13f0f4a81
Reviewed-on: https://go-review.googlesource.com/c/go/+/610475
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Commit-Queue: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: abner chenc <chenguoqi@loongson.cn>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/loong64enc1.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/loong64enc1.s b/src/cmd/asm/internal/asm/testdata/loong64enc1.s index 8d4231fa6c..45256beb7c 100644 --- a/src/cmd/asm/internal/asm/testdata/loong64enc1.s +++ b/src/cmd/asm/internal/asm/testdata/loong64enc1.s @@ -132,6 +132,11 @@ lable2: BREAK // 00002a00 UNDEF // 00002a00 + ANDN R4, R5, R6 // a6901600 + ANDN R4, R5 // a5901600 + ORN R4, R5, R6 // a6101600 + ORN R4, R5 // a5101600 + // mul MUL R4, R5 // a5101c00 MUL R4, R5, R6 // a6101c00 |
