]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: clean up code for short conditional branches
authorWANG Xuerui <git@xen0n.name>
Wed, 22 Mar 2023 05:28:08 +0000 (13:28 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 27 Mar 2023 21:45:39 +0000 (21:45 +0000)
commit1ae306a5be7ad6edb5f06bf25b38e9cbabcc3556
tree17a3feed85bf01636059aa7204724cfb216f0e9a
parentabe4e7a4469248aabd25ef0e1010d5f2c69cc39d
cmd/internal/obj/loong64: clean up code for short conditional branches

Untangle the logic so the preparation of operands and actual assembling
(branch range checking included) are properly separated, making future
changes easier to review and maintain. No functional change intended.

Change-Id: I1f73282f9d92ff23d84846453d3597ba66d207d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/478376
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/obj/loong64/asm.go