From 1fe07f45ee4e2162b3788176157348f9d2ac0fa3 Mon Sep 17 00:00:00 2001 From: Thilo Schaeffer <38328877+Thxlx@users.noreply.github.com> Date: Wed, 25 Nov 2026 17:45:05 +0100 Subject: [PATCH] test: clarify ARM64 assembler offset units Signed-off-by: Thilo Schaeffer <38328877+Thxlx@users.noreply.github.com> --- crates/loader/src/arm64.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/loader/src/arm64.rs b/crates/loader/src/arm64.rs index 3e7026c..8254e61 100644 --- a/crates/loader/src/arm64.rs +++ b/crates/loader/src/arm64.rs @@ -985,6 +985,7 @@ mod tests { let mut asm = Arm64Assembler::new(); // Seed the destination so a W-register load must clear the high bits. asm.movn_64(register, 0, 0); + // Assembler offsets count 32-bit instruction words. let start = asm.current_offset(); asm.load_imm_64(register, value); assert_eq!(