From eb6f5cb7c530c6dd69e9ad6605e4dad6daafe51e Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Wed, 11 May 2022 19:56:20 +0300 Subject: [PATCH] fix cu_memtest so it will byte-align test if size less than word --- arch/x86_64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86_64.S b/arch/x86_64.S index 070d0c2..8f3a74f 100644 --- a/arch/x86_64.S +++ b/arch/x86_64.S @@ -68,13 +68,13 @@ cu_memtest: mov %rdi, %rcx shr $3, %rcx - je .testok + je .skipq .testq: lodsq test %rax, %rax jnz .testfail loop .testq - +.skipq: mov %rdi, %rcx and $7, %rcx je .testok