mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-29 20:08:44 +00:00
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:
parent
2ad0d05d31
commit
8fa47acecc
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ MemCpy: .leafprologue
|
|||
cmp %rcx,%rdx
|
||||
ja 0b
|
||||
vmovdqu %ymm4,-32(%rdi,%rdx)
|
||||
vpxor %ymm4,%ymm4,%ymm4
|
||||
vpxor %ymm3,%ymm3,%ymm3
|
||||
vxorps %ymm4,%ymm4,%ymm4
|
||||
vxorps %ymm3,%ymm3,%ymm3
|
||||
jmp .L0
|
||||
.L16r: cmp $1024,%rdx
|
||||
jae .Lerms
|
||||
|
|
Loading…
Add table
Reference in a new issue