1 /* strcmp with unaligned loads
2 Copyright (C) 2013-2014 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
21 ENTRY ( __strcmp_sse2_unaligned)
40 movzbl (%rdi, %rdx), %eax
41 movzbl (%rsi, %rdx), %edx
47 movdqu 16(%rdi), %xmm6
48 movdqu 16(%rsi), %xmm3
49 movdqu 32(%rdi), %xmm5
51 movdqu 32(%rsi), %xmm2
54 movdqu 48(%rdi), %xmm4
57 movdqu 48(%rsi), %xmm0
78 leaq (%rdi, %rdx), %rax
97 movdqu 16(%rdx), %xmm1
99 movdqa 16(%rax), %xmm3
101 movdqu 32(%rdx), %xmm5
104 movdqu 48(%rdx), %xmm6
106 movdqa 32(%rax), %xmm2
108 movdqa 48(%rax), %xmm3
138 movzbl (%rax, %rcx), %eax
139 movzbl (%rdx, %rcx), %edx
150 movdqa (%rdx, %r10), %xmm0
151 movdqa 16(%rdx, %r10), %xmm1
152 movdqu (%rax, %r10), %xmm2
153 movdqu 16(%rax, %r10), %xmm3
155 movdqa 32(%rdx, %r10), %xmm5
158 movdqa 48(%rdx, %r10), %xmm6
160 movdqu 32(%rax, %r10), %xmm2
161 movdqu 48(%rax, %r10), %xmm3
188 movzbl (%rax, %rcx), %eax
189 movzbl (%rdx, %rcx), %edx
199 je L(main_loop_header)
201 movzbl (%rdi, %rdx), %eax
202 movzbl (%rsi, %rdx), %ecx
204 jne L(cross_page_loop)
209 END (__strcmp_sse2_unaligned)