]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add support for the rest of loong64 unary bitops
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Thu, 31 Oct 2024 08:18:08 +0000 (16:18 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Fri, 1 Nov 2024 01:54:58 +0000 (01:54 +0000)
commit3f694f73d0581b2f95054b4c5652a25b5d8e5116
treea983ce45ee89e091800d9dbefb0eb2427ef5fc56
parenta69fffbaf864ad88f9f7472960e39e2a03c1ff5f
cmd/asm: add support for the rest of loong64 unary bitops

All remaining unary bitop instructions in the LoongArch v1.00 base ISA
are added with this change.

While at it, add the missing W suffix to the current CLO/CLZ names. They
are not used anywhere as far as we know, so no breakage is expected.
Also, stop reusing SLL's instruction format for simplicity, in favor of
a new but trivial instruction format case.

This patch is a copy of CL 477717.
Co-authored-by: WANG Xuerui <git@xen0n.name>
Change-Id: Idbcaca25dda1ed313674ef8b26da722e8d7151c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/623876
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
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