2 * Written by J.T. Conklin <jtc@acorntoolworks.com>
5 * $NetBSD: strcmp.S,v 1.3 2004/07/19 20:04:41 drochner Exp $
6 * $FreeBSD: src/lib/libc/amd64/string/strcmp.S,v 1.2 2008/11/02 01:10:54 peter Exp $
9 #include <machine/asm.h>
13 * Align s1 to word boundary.
14 * Consider unrolling loop?
30 * Check whether s2 is aligned to a word boundry. If it is, we
31 * can compare by words. Otherwise we have to compare by bytes.
37 movabsq $0x0101010101010101,%r8
39 movabsq $0x8080808080808080,%r9