git: 4092df8820ea - main - arm64: Explicitly use movz

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 17 Feb 2026 20:48:13 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=4092df8820ea01951ab6df6cfd4fdc5b239e636e

commit 4092df8820ea01951ab6df6cfd4fdc5b239e636e
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-02-17 20:46:35 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-02-17 20:46:35 +0000

    arm64: Explicitly use movz
    
    This appeases GNU as which doesn't map the mov alias to movz.
    
    Reviewed by:    andrew
    Differential Revision:  https://reviews.freebsd.org/D55160
---
 sys/arm64/arm64/locore.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
index 46d3bac576e8..f1228235dfe7 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -44,7 +44,7 @@
  * This can be used early on when we don't know the CPUs endianness.
  */
 .macro	mov_q reg, val
-	mov	\reg, :abs_g0_nc:\val
+	movz	\reg, :abs_g0_nc:\val
 .if (\val >> 16) & 0xffff != 0
 	movk	\reg, :abs_g1_nc:\val
 .endif