Blame sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S
|
Packit |
6c4009 |
/* strstr with unaligned loads
|
|
Packit |
6c4009 |
Copyright (C) 2009-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <sysdep.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ENTRY(__strstr_sse2_unaligned)
|
|
Packit |
6c4009 |
movzbl (%rsi), %eax
|
|
Packit |
6c4009 |
testb %al, %al
|
|
Packit |
6c4009 |
je L(empty)
|
|
Packit |
6c4009 |
movzbl 1(%rsi), %edx
|
|
Packit |
6c4009 |
testb %dl, %dl
|
|
Packit |
6c4009 |
je L(strchr)
|
|
Packit |
6c4009 |
movd %eax, %xmm1
|
|
Packit |
6c4009 |
movd %edx, %xmm2
|
|
Packit |
6c4009 |
movq %rdi, %rax
|
|
Packit |
6c4009 |
andl $4095, %eax
|
|
Packit |
6c4009 |
punpcklbw %xmm1, %xmm1
|
|
Packit |
6c4009 |
cmpq $4031, %rax
|
|
Packit |
6c4009 |
punpcklbw %xmm2, %xmm2
|
|
Packit |
6c4009 |
punpcklwd %xmm1, %xmm1
|
|
Packit |
6c4009 |
punpcklwd %xmm2, %xmm2
|
|
Packit |
6c4009 |
pshufd $0, %xmm1, %xmm1
|
|
Packit |
6c4009 |
pshufd $0, %xmm2, %xmm2
|
|
Packit |
6c4009 |
ja L(cross_page)
|
|
Packit |
6c4009 |
movdqu (%rdi), %xmm3
|
|
Packit |
6c4009 |
pxor %xmm5, %xmm5
|
|
Packit |
6c4009 |
movdqu 1(%rdi), %xmm4
|
|
Packit |
6c4009 |
movdqa %xmm3, %xmm6
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm3
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm4
|
|
Packit |
6c4009 |
movdqu 16(%rdi), %xmm0
|
|
Packit |
6c4009 |
pcmpeqb %xmm5, %xmm6
|
|
Packit |
6c4009 |
pminub %xmm4, %xmm3
|
|
Packit |
6c4009 |
movdqa %xmm3, %xmm4
|
|
Packit |
6c4009 |
movdqu 17(%rdi), %xmm3
|
|
Packit |
6c4009 |
pcmpeqb %xmm0, %xmm5
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm3
|
|
Packit |
6c4009 |
por %xmm6, %xmm4
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm0
|
|
Packit |
6c4009 |
pminub %xmm3, %xmm0
|
|
Packit |
6c4009 |
por %xmm5, %xmm0
|
|
Packit |
6c4009 |
pmovmskb %xmm4, %r8d
|
|
Packit |
6c4009 |
pmovmskb %xmm0, %eax
|
|
Packit |
6c4009 |
salq $16, %rax
|
|
Packit |
6c4009 |
orq %rax, %r8
|
|
Packit |
6c4009 |
je L(next_32_bytes)
|
|
Packit |
6c4009 |
L(next_pair_index):
|
|
Packit |
6c4009 |
bsf %r8, %rax
|
|
Packit |
6c4009 |
addq %rdi, %rax
|
|
Packit |
6c4009 |
cmpb $0, (%rax)
|
|
Packit |
6c4009 |
je L(zero1)
|
|
Packit |
6c4009 |
movzbl 2(%rsi), %edx
|
|
Packit |
6c4009 |
testb %dl, %dl
|
|
Packit |
6c4009 |
je L(found1)
|
|
Packit |
6c4009 |
cmpb 2(%rax), %dl
|
|
Packit |
6c4009 |
jne L(next_pair)
|
|
Packit |
6c4009 |
xorl %edx, %edx
|
|
Packit |
6c4009 |
jmp L(pair_loop_start)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(strchr):
|
|
Packit |
6c4009 |
movzbl %al, %esi
|
|
Packit |
6c4009 |
jmp __strchr_sse2
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(pair_loop):
|
|
Packit |
6c4009 |
addq $1, %rdx
|
|
Packit |
6c4009 |
cmpb 2(%rax,%rdx), %cl
|
|
Packit |
6c4009 |
jne L(next_pair)
|
|
Packit |
6c4009 |
L(pair_loop_start):
|
|
Packit |
6c4009 |
movzbl 3(%rsi,%rdx), %ecx
|
|
Packit |
6c4009 |
testb %cl, %cl
|
|
Packit |
6c4009 |
jne L(pair_loop)
|
|
Packit |
6c4009 |
L(found1):
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
L(zero1):
|
|
Packit |
6c4009 |
xorl %eax, %eax
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(next_pair):
|
|
Packit |
6c4009 |
leaq -1(%r8), %rax
|
|
Packit |
6c4009 |
andq %rax, %r8
|
|
Packit |
6c4009 |
jne L(next_pair_index)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(next_32_bytes):
|
|
Packit |
6c4009 |
movdqu 32(%rdi), %xmm3
|
|
Packit |
6c4009 |
pxor %xmm5, %xmm5
|
|
Packit |
6c4009 |
movdqu 33(%rdi), %xmm4
|
|
Packit |
6c4009 |
movdqa %xmm3, %xmm6
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm3
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm4
|
|
Packit |
6c4009 |
movdqu 48(%rdi), %xmm0
|
|
Packit |
6c4009 |
pcmpeqb %xmm5, %xmm6
|
|
Packit |
6c4009 |
pminub %xmm4, %xmm3
|
|
Packit |
6c4009 |
movdqa %xmm3, %xmm4
|
|
Packit |
6c4009 |
movdqu 49(%rdi), %xmm3
|
|
Packit |
6c4009 |
pcmpeqb %xmm0, %xmm5
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm3
|
|
Packit |
6c4009 |
por %xmm6, %xmm4
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm0
|
|
Packit |
6c4009 |
pminub %xmm3, %xmm0
|
|
Packit |
6c4009 |
por %xmm5, %xmm0
|
|
Packit |
6c4009 |
pmovmskb %xmm4, %eax
|
|
Packit |
6c4009 |
salq $32, %rax
|
|
Packit |
6c4009 |
pmovmskb %xmm0, %r8d
|
|
Packit |
6c4009 |
salq $48, %r8
|
|
Packit |
6c4009 |
orq %rax, %r8
|
|
Packit |
6c4009 |
je L(loop_header)
|
|
Packit |
6c4009 |
L(next_pair2_index):
|
|
Packit |
6c4009 |
bsfq %r8, %rax
|
|
Packit |
6c4009 |
addq %rdi, %rax
|
|
Packit |
6c4009 |
cmpb $0, (%rax)
|
|
Packit |
6c4009 |
je L(zero2)
|
|
Packit |
6c4009 |
movzbl 2(%rsi), %edx
|
|
Packit |
6c4009 |
testb %dl, %dl
|
|
Packit |
6c4009 |
je L(found2)
|
|
Packit |
6c4009 |
cmpb 2(%rax), %dl
|
|
Packit |
6c4009 |
jne L(next_pair2)
|
|
Packit |
6c4009 |
xorl %edx, %edx
|
|
Packit |
6c4009 |
jmp L(pair_loop2_start)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(pair_loop2):
|
|
Packit |
6c4009 |
addq $1, %rdx
|
|
Packit |
6c4009 |
cmpb 2(%rax,%rdx), %cl
|
|
Packit |
6c4009 |
jne L(next_pair2)
|
|
Packit |
6c4009 |
L(pair_loop2_start):
|
|
Packit |
6c4009 |
movzbl 3(%rsi,%rdx), %ecx
|
|
Packit |
6c4009 |
testb %cl, %cl
|
|
Packit |
6c4009 |
jne L(pair_loop2)
|
|
Packit |
6c4009 |
L(found2):
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
L(zero2):
|
|
Packit |
6c4009 |
xorl %eax, %eax
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
L(empty):
|
|
Packit |
6c4009 |
mov %rdi, %rax
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(next_pair2):
|
|
Packit |
6c4009 |
leaq -1(%r8), %rax
|
|
Packit |
6c4009 |
andq %rax, %r8
|
|
Packit |
6c4009 |
jne L(next_pair2_index)
|
|
Packit |
6c4009 |
L(loop_header):
|
|
Packit |
6c4009 |
movq $-512, %r11
|
|
Packit |
6c4009 |
movq %rdi, %r9
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
pxor %xmm7, %xmm7
|
|
Packit |
6c4009 |
andq $-64, %rdi
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(loop):
|
|
Packit |
6c4009 |
movdqa 64(%rdi), %xmm3
|
|
Packit |
6c4009 |
movdqu 63(%rdi), %xmm6
|
|
Packit |
6c4009 |
movdqa %xmm3, %xmm0
|
|
Packit |
6c4009 |
pxor %xmm2, %xmm3
|
|
Packit |
6c4009 |
pxor %xmm1, %xmm6
|
|
Packit |
6c4009 |
movdqa 80(%rdi), %xmm10
|
|
Packit |
6c4009 |
por %xmm3, %xmm6
|
|
Packit |
6c4009 |
pminub %xmm10, %xmm0
|
|
Packit |
6c4009 |
movdqu 79(%rdi), %xmm3
|
|
Packit |
6c4009 |
pxor %xmm2, %xmm10
|
|
Packit |
6c4009 |
pxor %xmm1, %xmm3
|
|
Packit |
6c4009 |
movdqa 96(%rdi), %xmm9
|
|
Packit |
6c4009 |
por %xmm10, %xmm3
|
|
Packit |
6c4009 |
pminub %xmm9, %xmm0
|
|
Packit |
6c4009 |
pxor %xmm2, %xmm9
|
|
Packit |
6c4009 |
movdqa 112(%rdi), %xmm8
|
|
Packit |
6c4009 |
addq $64, %rdi
|
|
Packit |
6c4009 |
pminub %xmm6, %xmm3
|
|
Packit |
6c4009 |
movdqu 31(%rdi), %xmm4
|
|
Packit |
6c4009 |
pminub %xmm8, %xmm0
|
|
Packit |
6c4009 |
pxor %xmm2, %xmm8
|
|
Packit |
6c4009 |
pxor %xmm1, %xmm4
|
|
Packit |
6c4009 |
por %xmm9, %xmm4
|
|
Packit |
6c4009 |
pminub %xmm4, %xmm3
|
|
Packit |
6c4009 |
movdqu 47(%rdi), %xmm5
|
|
Packit |
6c4009 |
pxor %xmm1, %xmm5
|
|
Packit |
6c4009 |
por %xmm8, %xmm5
|
|
Packit |
6c4009 |
pminub %xmm5, %xmm3
|
|
Packit |
6c4009 |
pminub %xmm3, %xmm0
|
|
Packit |
6c4009 |
pcmpeqb %xmm7, %xmm0
|
|
Packit |
6c4009 |
pmovmskb %xmm0, %eax
|
|
Packit |
6c4009 |
testl %eax, %eax
|
|
Packit |
6c4009 |
je L(loop)
|
|
Packit |
6c4009 |
pminub (%rdi), %xmm6
|
|
Packit |
6c4009 |
pminub 32(%rdi),%xmm4
|
|
Packit |
6c4009 |
pminub 48(%rdi),%xmm5
|
|
Packit |
6c4009 |
pcmpeqb %xmm7, %xmm6
|
|
Packit |
6c4009 |
pcmpeqb %xmm7, %xmm5
|
|
Packit |
6c4009 |
pmovmskb %xmm6, %edx
|
|
Packit |
6c4009 |
movdqa 16(%rdi), %xmm8
|
|
Packit |
6c4009 |
pcmpeqb %xmm7, %xmm4
|
|
Packit |
6c4009 |
movdqu 15(%rdi), %xmm0
|
|
Packit |
6c4009 |
pmovmskb %xmm5, %r8d
|
|
Packit |
6c4009 |
movdqa %xmm8, %xmm3
|
|
Packit |
6c4009 |
pmovmskb %xmm4, %ecx
|
|
Packit |
6c4009 |
pcmpeqb %xmm1,%xmm0
|
|
Packit |
6c4009 |
pcmpeqb %xmm2,%xmm3
|
|
Packit |
6c4009 |
salq $32, %rcx
|
|
Packit |
6c4009 |
pcmpeqb %xmm7,%xmm8
|
|
Packit |
6c4009 |
salq $48, %r8
|
|
Packit |
6c4009 |
pminub %xmm0,%xmm3
|
|
Packit |
6c4009 |
orq %rcx, %rdx
|
|
Packit |
6c4009 |
por %xmm3,%xmm8
|
|
Packit |
6c4009 |
orq %rdx, %r8
|
|
Packit |
6c4009 |
pmovmskb %xmm8, %eax
|
|
Packit |
6c4009 |
salq $16, %rax
|
|
Packit |
6c4009 |
orq %rax, %r8
|
|
Packit |
6c4009 |
je L(loop)
|
|
Packit |
6c4009 |
L(next_pair_index3):
|
|
Packit |
6c4009 |
bsfq %r8, %rcx
|
|
Packit |
6c4009 |
addq %rdi, %rcx
|
|
Packit |
6c4009 |
cmpb $0, (%rcx)
|
|
Packit |
6c4009 |
je L(zero)
|
|
Packit |
6c4009 |
xorl %eax, %eax
|
|
Packit |
6c4009 |
movzbl 2(%rsi), %edx
|
|
Packit |
6c4009 |
testb %dl, %dl
|
|
Packit |
6c4009 |
je L(success3)
|
|
Packit |
6c4009 |
cmpb 1(%rcx), %dl
|
|
Packit |
6c4009 |
jne L(next_pair3)
|
|
Packit |
6c4009 |
jmp L(pair_loop_start3)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(pair_loop3):
|
|
Packit |
6c4009 |
addq $1, %rax
|
|
Packit |
6c4009 |
cmpb 1(%rcx,%rax), %dl
|
|
Packit |
6c4009 |
jne L(next_pair3)
|
|
Packit |
6c4009 |
L(pair_loop_start3):
|
|
Packit |
6c4009 |
movzbl 3(%rsi,%rax), %edx
|
|
Packit |
6c4009 |
testb %dl, %dl
|
|
Packit |
6c4009 |
jne L(pair_loop3)
|
|
Packit |
6c4009 |
L(success3):
|
|
Packit |
6c4009 |
lea -1(%rcx), %rax
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(next_pair3):
|
|
Packit |
6c4009 |
addq %rax, %r11
|
|
Packit |
6c4009 |
movq %rdi, %rax
|
|
Packit |
6c4009 |
subq %r9, %rax
|
|
Packit |
6c4009 |
cmpq %r11, %rax
|
|
Packit |
6c4009 |
jl L(switch_strstr)
|
|
Packit |
6c4009 |
leaq -1(%r8), %rax
|
|
Packit |
6c4009 |
andq %rax, %r8
|
|
Packit |
6c4009 |
jne L(next_pair_index3)
|
|
Packit |
6c4009 |
jmp L(loop)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(switch_strstr):
|
|
Packit |
6c4009 |
movq %rdi, %rdi
|
|
Packit |
6c4009 |
jmp __strstr_sse2
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(cross_page):
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
movq %rdi, %rax
|
|
Packit |
6c4009 |
pxor %xmm0, %xmm0
|
|
Packit |
6c4009 |
andq $-64, %rax
|
|
Packit |
6c4009 |
movdqa (%rax), %xmm3
|
|
Packit |
6c4009 |
movdqu -1(%rax), %xmm4
|
|
Packit |
6c4009 |
movdqa %xmm3, %xmm8
|
|
Packit |
6c4009 |
movdqa 16(%rax), %xmm5
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm4
|
|
Packit |
6c4009 |
pcmpeqb %xmm0, %xmm8
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm3
|
|
Packit |
6c4009 |
movdqa %xmm5, %xmm7
|
|
Packit |
6c4009 |
pminub %xmm4, %xmm3
|
|
Packit |
6c4009 |
movdqu 15(%rax), %xmm4
|
|
Packit |
6c4009 |
pcmpeqb %xmm0, %xmm7
|
|
Packit |
6c4009 |
por %xmm3, %xmm8
|
|
Packit |
6c4009 |
movdqa %xmm5, %xmm3
|
|
Packit |
6c4009 |
movdqa 32(%rax), %xmm5
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm4
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm3
|
|
Packit |
6c4009 |
movdqa %xmm5, %xmm6
|
|
Packit |
6c4009 |
pmovmskb %xmm8, %ecx
|
|
Packit |
6c4009 |
pminub %xmm4, %xmm3
|
|
Packit |
6c4009 |
movdqu 31(%rax), %xmm4
|
|
Packit |
6c4009 |
por %xmm3, %xmm7
|
|
Packit |
6c4009 |
movdqa %xmm5, %xmm3
|
|
Packit |
6c4009 |
pcmpeqb %xmm0, %xmm6
|
|
Packit |
6c4009 |
movdqa 48(%rax), %xmm5
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm4
|
|
Packit |
6c4009 |
pmovmskb %xmm7, %r8d
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm3
|
|
Packit |
6c4009 |
pcmpeqb %xmm5, %xmm0
|
|
Packit |
6c4009 |
pminub %xmm4, %xmm3
|
|
Packit |
6c4009 |
movdqu 47(%rax), %xmm4
|
|
Packit |
6c4009 |
por %xmm3, %xmm6
|
|
Packit |
6c4009 |
movdqa %xmm5, %xmm3
|
|
Packit |
6c4009 |
salq $16, %r8
|
|
Packit |
6c4009 |
pcmpeqb %xmm1, %xmm4
|
|
Packit |
6c4009 |
pcmpeqb %xmm2, %xmm3
|
|
Packit |
6c4009 |
pmovmskb %xmm6, %r10d
|
|
Packit |
6c4009 |
pminub %xmm4, %xmm3
|
|
Packit |
6c4009 |
por %xmm3, %xmm0
|
|
Packit |
6c4009 |
salq $32, %r10
|
|
Packit |
6c4009 |
orq %r10, %r8
|
|
Packit |
6c4009 |
orq %rcx, %r8
|
|
Packit |
6c4009 |
movl %edi, %ecx
|
|
Packit |
6c4009 |
pmovmskb %xmm0, %edx
|
|
Packit |
6c4009 |
subl %eax, %ecx
|
|
Packit |
6c4009 |
salq $48, %rdx
|
|
Packit |
6c4009 |
orq %rdx, %r8
|
|
Packit |
6c4009 |
shrq %cl, %r8
|
|
Packit |
6c4009 |
je L(loop_header)
|
|
Packit |
6c4009 |
L(next_pair_index4):
|
|
Packit |
6c4009 |
bsfq %r8, %rax
|
|
Packit |
6c4009 |
addq %rdi, %rax
|
|
Packit |
6c4009 |
cmpb $0, (%rax)
|
|
Packit |
6c4009 |
je L(zero)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
cmpq %rax,%rdi
|
|
Packit |
6c4009 |
je L(next_pair4)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
movzbl 2(%rsi), %edx
|
|
Packit |
6c4009 |
testb %dl, %dl
|
|
Packit |
6c4009 |
je L(found3)
|
|
Packit |
6c4009 |
cmpb 1(%rax), %dl
|
|
Packit |
6c4009 |
jne L(next_pair4)
|
|
Packit |
6c4009 |
xorl %edx, %edx
|
|
Packit |
6c4009 |
jmp L(pair_loop_start4)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(pair_loop4):
|
|
Packit |
6c4009 |
addq $1, %rdx
|
|
Packit |
6c4009 |
cmpb 1(%rax,%rdx), %cl
|
|
Packit |
6c4009 |
jne L(next_pair4)
|
|
Packit |
6c4009 |
L(pair_loop_start4):
|
|
Packit |
6c4009 |
movzbl 3(%rsi,%rdx), %ecx
|
|
Packit |
6c4009 |
testb %cl, %cl
|
|
Packit |
6c4009 |
jne L(pair_loop4)
|
|
Packit |
6c4009 |
L(found3):
|
|
Packit |
6c4009 |
subq $1, %rax
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(next_pair4):
|
|
Packit |
6c4009 |
leaq -1(%r8), %rax
|
|
Packit |
6c4009 |
andq %rax, %r8
|
|
Packit |
6c4009 |
jne L(next_pair_index4)
|
|
Packit |
6c4009 |
jmp L(loop_header)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(found):
|
|
Packit |
6c4009 |
rep
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.p2align 4
|
|
Packit |
6c4009 |
L(zero):
|
|
Packit |
6c4009 |
xorl %eax, %eax
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
END(__strstr_sse2_unaligned)
|