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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue