aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_openbsd_arm64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/rt0_openbsd_arm64.s')
-rw-r--r--src/runtime/rt0_openbsd_arm64.s3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/rt0_openbsd_arm64.s b/src/runtime/rt0_openbsd_arm64.s
index 12408f2eec..722fab6129 100644
--- a/src/runtime/rt0_openbsd_arm64.s
+++ b/src/runtime/rt0_openbsd_arm64.s
@@ -50,8 +50,7 @@ TEXT _rt0_arm64_openbsd_lib(SB),NOSPLIT,$184
// Create a new thread to do the runtime initialization and return.
MOVD _cgo_sys_thread_create(SB), R4
- CMP $0, R4
- BEQ nocgo
+ CBZ R4, nocgo
MOVD $_rt0_arm64_openbsd_lib_go(SB), R0
MOVD $0, R1
SUB $16, RSP // reserve 16 bytes for sp-8 where fp may be saved.