summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-03-12 18:51:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-03-12 18:51:32 +0000
commitb384425fe5b53dceddb6d671b2cad156a0328c2e (patch)
tree48e1a189ed665fa4e4936df8ac226c6a0268ec32
parent9f584df1db4c7598c3be102bffb709cb2854fac6 (diff)
sync
-rw-r--r--sys/lib/libkern/arch/sparc/rem.S16
-rw-r--r--sys/lib/libkern/arch/sparc/sdiv.S16
-rw-r--r--sys/lib/libkern/arch/sparc/udiv.S16
-rw-r--r--sys/lib/libkern/arch/sparc/urem.S16
4 files changed, 32 insertions, 32 deletions
diff --git a/sys/lib/libkern/arch/sparc/rem.S b/sys/lib/libkern/arch/sparc/rem.S
index 76f774de0be..7b56d2bf90d 100644
--- a/sys/lib/libkern/arch/sparc/rem.S
+++ b/sys/lib/libkern/arch/sparc/rem.S
@@ -1,5 +1,5 @@
-/* $OpenBSD: rem.S,v 1.1 2007/11/25 18:25:36 deraadt Exp $ */
+/* $OpenBSD: rem.S,v 1.2 2011/03/12 18:51:31 deraadt Exp $ */
/* $NetBSD: divrem.m4,v 1.3 1995/04/22 09:37:39 pk Exp $ */
/*
@@ -156,15 +156,15 @@ FUNC(.rem)
1:
cmp %o5, %g1
bgeu 3f
- mov 1, %g7
+ mov 1, %g5
sll %o5, 4, %o5
b 1b
inc %o4
- ! Now compute %g7.
+ ! Now compute %g5.
2: addcc %o5, %o5, %o5
bcc Lnot_too_big
- inc %g7
+ inc %g5
! We get here if the %o1 overflowed while shifting.
! This means that %o3 has the high-order bit set.
@@ -173,7 +173,7 @@ FUNC(.rem)
srl %o5, 1, %o5 ! rest of %o5
add %o5, %g1, %o5
b Ldo_single_div
- dec %g7
+ dec %g5
Lnot_too_big:
3: cmp %o5, %o3
@@ -185,7 +185,7 @@ FUNC(.rem)
/* (I do not understand this) */
! %o5 > %o3: went too far: back up 1 step
! srl %o5, 1, %o5
- ! dec %g7
+ ! dec %g5
! do single-bit divide steps
!
! We have to be careful here. We know that %o3 >= %o5, so we can do the
@@ -195,7 +195,7 @@ FUNC(.rem)
! division loop will mess up the first time around.
! So we unroll slightly...
Ldo_single_div:
- deccc %g7
+ deccc %g5
bl Lend_regular_divide
nop
sub %o3, %o5, %o3
@@ -215,7 +215,7 @@ FUNC(.rem)
dec %o2
2:
Lend_single_divloop:
- deccc %g7
+ deccc %g5
bge Lsingle_divloop
tst %o3
b,a Lend_regular_divide
diff --git a/sys/lib/libkern/arch/sparc/sdiv.S b/sys/lib/libkern/arch/sparc/sdiv.S
index f8df34329eb..a09e2ce2a63 100644
--- a/sys/lib/libkern/arch/sparc/sdiv.S
+++ b/sys/lib/libkern/arch/sparc/sdiv.S
@@ -1,5 +1,5 @@
-/* $OpenBSD: sdiv.S,v 1.1 2007/11/25 18:25:36 deraadt Exp $ */
+/* $OpenBSD: sdiv.S,v 1.2 2011/03/12 18:51:31 deraadt Exp $ */
/* $NetBSD: divrem.m4,v 1.3 1995/04/22 09:37:39 pk Exp $ */
/*
@@ -156,15 +156,15 @@ FUNC(.div)
1:
cmp %o5, %g1
bgeu 3f
- mov 1, %g7
+ mov 1, %g5
sll %o5, 4, %o5
b 1b
inc %o4
- ! Now compute %g7.
+ ! Now compute %g5.
2: addcc %o5, %o5, %o5
bcc Lnot_too_big
- inc %g7
+ inc %g5
! We get here if the %o1 overflowed while shifting.
! This means that %o3 has the high-order bit set.
@@ -173,7 +173,7 @@ FUNC(.div)
srl %o5, 1, %o5 ! rest of %o5
add %o5, %g1, %o5
b Ldo_single_div
- dec %g7
+ dec %g5
Lnot_too_big:
3: cmp %o5, %o3
@@ -185,7 +185,7 @@ FUNC(.div)
/* (I do not understand this) */
! %o5 > %o3: went too far: back up 1 step
! srl %o5, 1, %o5
- ! dec %g7
+ ! dec %g5
! do single-bit divide steps
!
! We have to be careful here. We know that %o3 >= %o5, so we can do the
@@ -195,7 +195,7 @@ FUNC(.div)
! division loop will mess up the first time around.
! So we unroll slightly...
Ldo_single_div:
- deccc %g7
+ deccc %g5
bl Lend_regular_divide
nop
sub %o3, %o5, %o3
@@ -215,7 +215,7 @@ FUNC(.div)
dec %o2
2:
Lend_single_divloop:
- deccc %g7
+ deccc %g5
bge Lsingle_divloop
tst %o3
b,a Lend_regular_divide
diff --git a/sys/lib/libkern/arch/sparc/udiv.S b/sys/lib/libkern/arch/sparc/udiv.S
index c39eb76f72b..b2271f0b470 100644
--- a/sys/lib/libkern/arch/sparc/udiv.S
+++ b/sys/lib/libkern/arch/sparc/udiv.S
@@ -1,5 +1,5 @@
-/* $OpenBSD: udiv.S,v 1.1 2007/11/25 18:25:36 deraadt Exp $ */
+/* $OpenBSD: udiv.S,v 1.2 2011/03/12 18:51:31 deraadt Exp $ */
/* $NetBSD: divrem.m4,v 1.3 1995/04/22 09:37:39 pk Exp $ */
/*
@@ -143,15 +143,15 @@ FUNC(.udiv)
1:
cmp %o5, %g1
bgeu 3f
- mov 1, %g7
+ mov 1, %g5
sll %o5, 4, %o5
b 1b
inc %o4
- ! Now compute %g7.
+ ! Now compute %g5.
2: addcc %o5, %o5, %o5
bcc Lnot_too_big
- inc %g7
+ inc %g5
! We get here if the %o1 overflowed while shifting.
! This means that %o3 has the high-order bit set.
@@ -160,7 +160,7 @@ FUNC(.udiv)
srl %o5, 1, %o5 ! rest of %o5
add %o5, %g1, %o5
b Ldo_single_div
- dec %g7
+ dec %g5
Lnot_too_big:
3: cmp %o5, %o3
@@ -172,7 +172,7 @@ FUNC(.udiv)
/* (I do not understand this) */
! %o5 > %o3: went too far: back up 1 step
! srl %o5, 1, %o5
- ! dec %g7
+ ! dec %g5
! do single-bit divide steps
!
! We have to be careful here. We know that %o3 >= %o5, so we can do the
@@ -182,7 +182,7 @@ FUNC(.udiv)
! division loop will mess up the first time around.
! So we unroll slightly...
Ldo_single_div:
- deccc %g7
+ deccc %g5
bl Lend_regular_divide
nop
sub %o3, %o5, %o3
@@ -202,7 +202,7 @@ FUNC(.udiv)
dec %o2
2:
Lend_single_divloop:
- deccc %g7
+ deccc %g5
bge Lsingle_divloop
tst %o3
b,a Lend_regular_divide
diff --git a/sys/lib/libkern/arch/sparc/urem.S b/sys/lib/libkern/arch/sparc/urem.S
index e6ecff3eb4f..b88d3f4ac02 100644
--- a/sys/lib/libkern/arch/sparc/urem.S
+++ b/sys/lib/libkern/arch/sparc/urem.S
@@ -1,5 +1,5 @@
-/* $OpenBSD: urem.S,v 1.1 2007/11/25 18:25:36 deraadt Exp $ */
+/* $OpenBSD: urem.S,v 1.2 2011/03/12 18:51:31 deraadt Exp $ */
/* $NetBSD: divrem.m4,v 1.3 1995/04/22 09:37:39 pk Exp $ */
/*
@@ -143,15 +143,15 @@ FUNC(.urem)
1:
cmp %o5, %g1
bgeu 3f
- mov 1, %g7
+ mov 1, %g5
sll %o5, 4, %o5
b 1b
inc %o4
- ! Now compute %g7.
+ ! Now compute %g5.
2: addcc %o5, %o5, %o5
bcc Lnot_too_big
- inc %g7
+ inc %g5
! We get here if the %o1 overflowed while shifting.
! This means that %o3 has the high-order bit set.
@@ -160,7 +160,7 @@ FUNC(.urem)
srl %o5, 1, %o5 ! rest of %o5
add %o5, %g1, %o5
b Ldo_single_div
- dec %g7
+ dec %g5
Lnot_too_big:
3: cmp %o5, %o3
@@ -172,7 +172,7 @@ FUNC(.urem)
/* (I do not understand this) */
! %o5 > %o3: went too far: back up 1 step
! srl %o5, 1, %o5
- ! dec %g7
+ ! dec %g5
! do single-bit divide steps
!
! We have to be careful here. We know that %o3 >= %o5, so we can do the
@@ -182,7 +182,7 @@ FUNC(.urem)
! division loop will mess up the first time around.
! So we unroll slightly...
Ldo_single_div:
- deccc %g7
+ deccc %g5
bl Lend_regular_divide
nop
sub %o3, %o5, %o3
@@ -202,7 +202,7 @@ FUNC(.urem)
dec %o2
2:
Lend_single_divloop:
- deccc %g7
+ deccc %g5
bge Lsingle_divloop
tst %o3
b,a Lend_regular_divide