fix cu_memtest so it will byte-align test if size less than word
This commit is contained in:
parent
9629e3630a
commit
eb6f5cb7c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue