2 * String handling functions for PowerPC.
4 * Copyright (C) 1996 Paul Mackerras.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
11 #include <asm/processor.h>
12 #include <asm/errno.h>
13 #include <asm/ppc_asm.h>
18 andi. r0,r0,7 /* # bytes to be 8-byte aligned */
20 cmplw cr1,r5,r0 /* do we get that far? */
25 beq+ 3f /* if already 8-byte aligned */
85 _GLOBAL(backwards_memcpy)
86 rlwinm. r7,r5,32-3,3,31 /* r0 = r5 >> 3 */
116 rlwinm. r7,r5,32-3,3,31