aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_linux_ppc64le.s
diff options
context:
space:
mode:
authorPaul E. Murphy <murp@ibm.com>2024-05-14 10:05:00 -0500
committerPaul Murphy <murp@ibm.com>2024-05-22 18:17:17 +0000
commitcc673d2ec5df9e0894ea2cc3e16a9c309c219bd8 (patch)
tree15a41e809178a1db303ea4e656e0e313349570ea /src/runtime/rt0_linux_ppc64le.s
parent41884dcd05546ced3634496d931d0b005fc8c2e6 (diff)
downloadgo-cc673d2ec5df9e0894ea2cc3e16a9c309c219bd8.tar.xz
all: convert PPC64 CMPx ...,R0,... to CMPx Rx,$0
Cleanup all remaining trivial compares against $0 in ppc64x assembly. In math, SRD ...,Rx; CMP Rx, $0 is further simplified to SRDCC. Change-Id: Ia2bc204953e32f08ee142bfd06a91965f30f99b6 Reviewed-on: https://go-review.googlesource.com/c/go/+/587016 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com> Run-TryBot: Paul Murphy <murp@ibm.com> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/rt0_linux_ppc64le.s')
-rw-r--r--src/runtime/rt0_linux_ppc64le.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/rt0_linux_ppc64le.s b/src/runtime/rt0_linux_ppc64le.s
index 417ada21bf..4b7d8e1b94 100644
--- a/src/runtime/rt0_linux_ppc64le.s
+++ b/src/runtime/rt0_linux_ppc64le.s
@@ -78,7 +78,7 @@ TEXT _main<>(SB),NOSPLIT,$-8
// passes argc/argv similar to the linux kernel, R13 (TLS) is
// initialized, and R3/R4 are undefined.
MOVD (R1), R12
- CMP R0, R12
+ CMP R12, $0
BEQ tls_and_argcv_in_reg
// Arguments are passed via the stack (musl loader or a static binary)
@@ -86,7 +86,7 @@ TEXT _main<>(SB),NOSPLIT,$-8
ADD $8, R1, R4 // argv
// Did the TLS pointer get set? If so, don't change it (e.g musl).
- CMP R0, R13
+ CMP R13, $0
BNE tls_and_argcv_in_reg
MOVD $runtimeĀ·m0+m_tls(SB), R13 // TLS