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 mov %rdi, %rcx
shr $3, %rcx shr $3, %rcx
je .testok je .skipq
.testq: .testq:
lodsq lodsq
test %rax, %rax test %rax, %rax
jnz .testfail jnz .testfail
loop .testq loop .testq
.skipq:
mov %rdi, %rcx mov %rdi, %rcx
and $7, %rcx and $7, %rcx
je .testok je .testok