Skip to content

Instantly share code, notes, and snippets.

@ttsiodras
Last active July 18, 2022 19:50
Show Gist options
  • Save ttsiodras/c68620405af4f5bc1f8e35d04844e283 to your computer and use it in GitHub Desktop.
Save ttsiodras/c68620405af4f5bc1f8e35d04844e283 to your computer and use it in GitHub Desktop.
.intel_syntax noprefix
l1:
vmulpd ymm2,ymm0,ymm1
vmulpd ymm0,ymm0,ymm0
vmulpd ymm1,ymm1,ymm1
vaddpd ymm4,ymm0,ymm1
vsubpd ymm0,ymm0,ymm1
vaddpd ymm0,ymm0,ymm6
vaddpd ymm1,ymm2,ymm2
vaddpd ymm1,ymm1,ymm7
vcmpltpd ymm4,ymm4,ymm5
vmovapd ymm2,ymm4
vmovmskpd eax,ymm4
vandpd ymm4,ymm4,ymm11
vaddpd ymm3,ymm3,ymm4
test eax,eax
je l2
sub ecx,0x1
jne l22
vmovapd ymm4,ymm2
vxorpd ymm4,ymm4,ymm12
vandpd ymm3,ymm3,ymm4
jmp l2
l22:
and ebx,0xf
jne l11
inc ebx
vmovapd ymm8,ymm0
vmovapd ymm9,ymm1
jmp l1
l11:
vcmpeqpd ymm10,ymm8,ymm0
vmovmskpd eax,ymm10
test eax,eax
je l1
vcmpeqpd ymm10,ymm9,ymm1
vmovmskpd eax,ymm10
test eax,eax
je l1
l2:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment