]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: add support for instructions ANDN and ORN
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Wed, 4 Sep 2024 08:19:22 +0000 (16:19 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 5 Sep 2024 00:48:33 +0000 (00:48 +0000)
commitdb07c8607a1da5f618a7a8c2fae3e557dc6cb1af
treee0349a4132b5561d4008cc643a989cf595ecd7d8
parent501b389efc6213eda80eeed2253d3d7f931f3db5
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>
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/internal/obj/loong64/a.out.go
src/cmd/internal/obj/loong64/anames.go
src/cmd/internal/obj/loong64/asm.go