Fix memcpy on sandybridge and ivybridge
This bug impacts folks who purchased Intel chips made in 2011-2012. We're now using `vxorps` instead of `vpxor` which is great since it means we do not need to change `X86_HAVE(AVX)` to `X86_HAVE(AVX2)`, because AVX2 is only available on Haswell and later. Fixes #16
This commit is contained in:
@@ -70,8 +70,8 @@ MemCpy: .leafprologue
|
|||||||
cmp %rcx,%rdx
|
cmp %rcx,%rdx
|
||||||
ja 0b
|
ja 0b
|
||||||
vmovdqu %ymm4,-32(%rdi,%rdx)
|
vmovdqu %ymm4,-32(%rdi,%rdx)
|
||||||
vpxor %ymm4,%ymm4,%ymm4
|
vxorps %ymm4,%ymm4,%ymm4
|
||||||
vpxor %ymm3,%ymm3,%ymm3
|
vxorps %ymm3,%ymm3,%ymm3
|
||||||
jmp .L0
|
jmp .L0
|
||||||
.L16r: cmp $1024,%rdx
|
.L16r: cmp $1024,%rdx
|
||||||
jae .Lerms
|
jae .Lerms
|
||||||
|
|||||||
Reference in New Issue
Block a user