Module Name: src
Committed By: matt
Date: Thu Feb 7 01:20:29 UTC 2013
Modified Files:
src/common/lib/libc/arch/arm/string: strchr_arm.S
Log Message:
orrne wants 3 registers
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libc/arch/arm/string/strchr_arm.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/arch/arm/string/strchr_arm.S
diff -u src/common/lib/libc/arch/arm/string/strchr_arm.S:1.3 src/common/lib/libc/arch/arm/string/strchr_arm.S:1.4
--- src/common/lib/libc/arch/arm/string/strchr_arm.S:1.3 Sat Jan 26 07:49:11 2013
+++ src/common/lib/libc/arch/arm/string/strchr_arm.S Thu Feb 7 01:20:29 2013
@@ -29,7 +29,7 @@
#include <machine/asm.h>
-RCSID("$NetBSD: strchr_arm.S,v 1.3 2013/01/26 07:49:11 matt Exp $")
+RCSID("$NetBSD: strchr_arm.S,v 1.4 2013/02/07 01:20:29 matt Exp $")
#ifdef __ARMEL__
#define BYTE0 0x000000ff
@@ -95,8 +95,8 @@ ENTRY(strchr)
bics r3, r3, ip /* clear match for the NUL(s) */
beq .Lnomatch /* any left set? if not, no match */
movs ip, ip, lshi #8 /* replicate NUL bit to other bytes */
- orrne ip, ip, lshi #8 /* replicate NUL bit to other bytes */
- orrne ip, ip, lshi #8 /* replicate NUL bit to other bytes */
+ orrne ip, ip, ip, lshi #8 /* replicate NUL bit to other bytes */
+ orrne ip, ip, ip, lshi #8 /* replicate NUL bit to other bytes */
bics r3, r3, ip /* clear any match bits after the NUL */
beq .Lnomatch /* any left set? if not, no match */
.Lfind_match: