]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: fixed operand assignment error for BFPT/BFPF instructions
authorlimeidan <limeidan@loongson.cn>
Sat, 6 Jan 2024 09:26:37 +0000 (17:26 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Tue, 30 Jul 2024 00:34:05 +0000 (00:34 +0000)
commitff0c2d96348fd86f77ecf6868dc1a0f09e35ff90
tree2a3db697e78b13b98abf522d182aa55bee009aeb
parent950fcf129ecc75e6311d3aaf555e7b8add3248cb
cmd/internal/obj/loong64: fixed operand assignment error for BFPT/BFPF instructions

The BFPT correspond to BCNEZ instruction of LoongArch64 which structure
is:
| op-p1 | offs[15:0] | op-p2 | cj | offs[20:16] |
The register REG_FCC0 should be assigned to the source operand cj which named rj here.

Change-Id: I696d0a46028924da1cd7e240fbb40a1913f1a757
Reviewed-on: https://go-review.googlesource.com/c/go/+/565620
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
src/cmd/internal/obj/loong64/asm.go