]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: add new assembly format for BFPT and BFPF on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Wed, 23 Apr 2025 02:30:39 +0000 (10:30 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Fri, 25 Apr 2025 01:28:42 +0000 (18:28 -0700)
commitfb2c88147d0aab656b7a8ae109b3d1241de402ab
tree6b1188caf2ad7b727093169f14b09acafcaf12da
parent06f96a598eb6ee1679624f955fe5e1e837e4c49c
cmd/internal/obj: add new assembly format for BFPT and BFPF on loong64

On loong64, BFPT and BFPF are mapped to the platform assembly as follows:

   Go asm syntax:
        BFPT   FCCx, offs21
        BFPF   FCCx, offs21
   Equivalent platform assembler syntax:
        bcnez  cj, offs21
        bceqz  cj, offs21

If the condition register is not specified, it defaults to FCC0.

Change-Id: I2cc3df62a9c55d4b5eb124789358983c6737319c
Reviewed-on: https://go-review.googlesource.com/c/go/+/667456
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
src/cmd/asm/internal/asm/testdata/loong64enc1.s
src/cmd/internal/obj/loong64/asm.go