mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
test: clarify ARM64 assembler offset units
Signed-off-by: Thilo Schaeffer <38328877+Thxlx@users.noreply.github.com>
This commit is contained in:
1 parent
4c92c88b29
commit
1fe07f45ee
1 file changed
+1
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user