]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix the implementation of NORconst on loong64
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Mon, 19 May 2025 09:02:48 +0000 (17:02 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Wed, 21 May 2025 03:24:09 +0000 (20:24 -0700)
commitd37a1bdd48458e48de13cdc320c8ddf9b021e356
treed357d9b2df8dc154e208d92ec0f91fda02d673ea
parent74304cda29381fd5ba07a4090b701f8a670896c6
cmd/compile: fix the implementation of NORconst on loong64

In the loong64 instruction set, there is no NORI instruction,
so the immediate value in NORconst need to be stored in register
and then use the three-register NOR instruction.

Change-Id: I5ef697450619317218cb3ef47fc07e238bdc2139
Reviewed-on: https://go-review.googlesource.com/c/go/+/673836
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/loong64/ssa.go
test/codegen/bits.go