]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: add CPUCFG instructions support
authorGuoqi Chen <chenguoqi@loongson.cn>
Fri, 7 Apr 2023 14:37:57 +0000 (22:37 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Sat, 27 Jul 2024 08:44:18 +0000 (08:44 +0000)
commit0a9321ad7f8c91e1b0c7184731257df923977eb9
treeccefacbcad03ef44e512449fa0883734046e54bc
parent456785ceed9e209bf3cbdc6a46e752b766722550
cmd/internal/obj/loong64: add CPUCFG instructions support

The CPUCFG instruction is used to dynamically obtain the features
supported by the current CPU during the running of the program.

Go asm syntax:
CPUCFG RJ, RD

Equivalent platform assembler syntax:
cpucfg rd, rj

Reference: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html

Change-Id: I545110ff837ae9c5ccd7c448a1daf2d1277f9aa1
Reviewed-on: https://go-review.googlesource.com/c/go/+/493436
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.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