summaryrefslogtreecommitdiff
path: root/lib/libc/arch/vax/string/bcmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/vax/string/bcmp.S')
-rw-r--r--lib/libc/arch/vax/string/bcmp.S20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/arch/vax/string/bcmp.S b/lib/libc/arch/vax/string/bcmp.S
index 14711f417f5..ccb63da20f2 100644
--- a/lib/libc/arch/vax/string/bcmp.S
+++ b/lib/libc/arch/vax/string/bcmp.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcmp.S,v 1.4 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: bcmp.S,v 1.5 2013/07/05 21:10:50 miod Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -34,23 +34,23 @@
/* still, this is four times faster than the generic C version on a uvax2 */
ENTRY(bcmp, 0)
- movl 12(ap),r0 # r0 = n
+ movl 12(%ap),%r0 # r0 = n
jeql 9f
- movq 4(ap),r1 # r1 = s1, r2 = s2
- ashl $-2,r0,r3 # convert len to # of long words
+ movq 4(%ap),%r1 # r1 = s1, r2 = s2
+ ashl $-2,%r0,%r3 # convert len to # of long words
jeql 2f
1:
- cmpl (r1)+,(r2)+ # no "cmpq" alas, so four bytes at a time
+ cmpl (%r1)+,(%r2)+ # no "cmpq" alas, so four bytes at a time
jneq 9f
- sobgtr r3,1b
+ sobgtr %r3,1b
2:
- bicl3 $-4,r0,r3 # handle at most 3 extra bytes
+ bicl3 $-4,%r0,%r3 # handle at most 3 extra bytes
jeql 8f
3:
- cmpb (r1)+,(r2)+
+ cmpb (%r1)+,(%r2)+
jneq 9f
- sobgtr r3,3b
+ sobgtr %r3,3b
8:
- clrl r0 # we have a match!
+ clrl %r0 # we have a match!
9:
ret