]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: improve logical shift with MASKEQZ on loong64
authorWayne Zuo <wdvxdr@golangcn.org>
Thu, 1 Sep 2022 04:26:43 +0000 (12:26 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 27 Feb 2023 21:02:04 +0000 (21:02 +0000)
commit83907206de003555c73a16b1b6d97662b5511cf7
treeec3f532326c0a62f4ec8909b295b3ac8cfb4b127
parent1e0c32cccbe73be45414967612800be76d933870
cmd/compile: improve logical shift with MASKEQZ on loong64

Using MASKEQZ instruction can save one instruction in calculation of
shift operations.

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

Change-Id: Ic5349c6f5ebd7af608c7d75a9b3a862305758275
Reviewed-on: https://go-review.googlesource.com/c/go/+/427396
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/ssa/_gen/LOONG64.rules
src/cmd/compile/internal/ssa/rewriteLOONG64.go