Skip to content

Instantly share code, notes, and snippets.

@iskandr
Last active December 11, 2015 22:28
Show Gist options
  • Select an option

  • Save iskandr/4669647 to your computer and use it in GitHub Desktop.

Select an option

Save iskandr/4669647 to your computer and use it in GitHub Desktop.
count_thresh:
;; %entry
movq 8(%rdi), %rax
movq (%rax), %r8
xorl %eax, %eax
testq %r8, %r8
jle .LBB0_3
;; %loop_body.preheader
movq 24(%rdi), %rax
movq (%rdi), %rdx
leaq (%rdx,%rax,8), %rdx
xorl %eax, %eax
.align 16, 0x90
;; %loop_body
.LBB0_2:
ucomisd (%rdx), %xmm0
seta %cl
movzbl %cl, %esi
addq %rsi, %rax
addq $8, %rdx
decq %r8
jne .LBB0_2
.LBB0_3:
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment