fix cu_memtest so it will byte-align test if size less than word

This commit is contained in:
mykola2312 2022-05-11 19:56:20 +03:00
parent 9629e3630a
commit eb6f5cb7c5

View file

@ -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