Skip to content

Commit

Permalink
* sysdeps/sparc/sparc32/strcat.S: Avoid using register g6. * sysdeps…
Browse files Browse the repository at this point in the history
…/sparc/sparc32/strcpy.S: Likewise.

1999-04-15  David S. Miller  <davem@redhat.com>

	* sysdeps/sparc/sparc32/strcat.S: Avoid using register g6.
	* sysdeps/sparc/sparc32/strcpy.S: Likewise.
  • Loading branch information
Richard Henderson committed Apr 15, 1999
1 parent 080f7c5 commit 5d15fc5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1999-04-15 David S. Miller <davem@redhat.com>

* sysdeps/sparc/sparc32/strcat.S: Avoid using register g6.
* sysdeps/sparc/sparc32/strcpy.S: Likewise.

1999-04-15 Scott Bambrough <scottb@netwinder.org>

* sysdeps/unix/sysv/linux/arm/sigaction.c: Fix typo in preventing
Expand Down
12 changes: 6 additions & 6 deletions sysdeps/sparc/sparc32/strcat.S
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ ENTRY(strcat)
srl %o5, 8, %g5
sth %g5, [%o0 + 2]
1: add %o0, 4, %o0
4: sll %o5, 24, %g6
4: sll %o5, 24, %g7
ld [%o1], %o5
add %o1, 4, %o1
srl %o5, 8, %g5
sub %o5, %o2, %o4
#ifdef EIGHTBIT_NOT_RARE
andn %o4, %o5, %o4
#endif
or %g5, %g6, %g5
or %g5, %g7, %g5
andcc %o4, %o3, %g0
be,a 1b
st %g5, [%o0]
Expand Down Expand Up @@ -249,15 +249,15 @@ ENTRY(strcat)
sth %g5, [%o0]
sub %o0, 2, %o0
1: add %o0, 4, %o0
4: sll %o5, 16, %g6
4: sll %o5, 16, %g7
ld [%o1], %o5
add %o1, 4, %o1
srl %o5, 16, %g5
sub %o5, %o2, %o4
#ifdef EIGHTBIT_NOT_RARE
andn %o4, %o5, %o4
#endif
or %g5, %g6, %g5
or %g5, %g7, %g5
andcc %o4, %o3, %g0
be,a 1b
st %g5, [%o0]
Expand Down Expand Up @@ -305,15 +305,15 @@ ENTRY(strcat)
stb %g5, [%o0]
sub %o0, 3, %o0
1: add %o0, 4, %o0
4: sll %o5, 8, %g6
4: sll %o5, 8, %g7
ld [%o1], %o5
add %o1, 4, %o1
srl %o5, 24, %g5
sub %o5, %o2, %o4
#ifdef EIGHTBIT_NOT_RARE
andn %o4, %o5, %o4
#endif
or %g5, %g6, %g5
or %g5, %g7, %g5
andcc %o4, %o3, %g0
be 1b
st %g5, [%o0]
Expand Down
12 changes: 6 additions & 6 deletions sysdeps/sparc/sparc32/strcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ ENTRY(strcpy)
srl %o5, 8, %g5
sth %g5, [%o0 + 2]
1: add %o0, 4, %o0
4: sll %o5, 24, %g6
4: sll %o5, 24, %g7
ld [%o1], %o5
add %o1, 4, %o1
srl %o5, 8, %g5
sub %o5, %o2, %o4
or %g5, %g6, %g5
or %g5, %g7, %g5
andcc %o4, %o3, %g0
be,a 1b
st %g5, [%o0]
Expand Down Expand Up @@ -184,12 +184,12 @@ ENTRY(strcpy)
sth %g5, [%o0]
sub %o0, 2, %o0
1: add %o0, 4, %o0
4: sll %o5, 16, %g6
4: sll %o5, 16, %g7
ld [%o1], %o5
add %o1, 4, %o1
srl %o5, 16, %g5
sub %o5, %o2, %o4
or %g5, %g6, %g5
or %g5, %g7, %g5
andcc %o4, %o3, %g0
be,a 1b
st %g5, [%o0]
Expand Down Expand Up @@ -234,12 +234,12 @@ ENTRY(strcpy)
stb %g5, [%o0]
sub %o0, 3, %o0
1: add %o0, 4, %o0
4: sll %o5, 8, %g6
4: sll %o5, 8, %g7
ld [%o1], %o5
add %o1, 4, %o1
srl %o5, 24, %g5
sub %o5, %o2, %o4
or %g5, %g6, %g5
or %g5, %g7, %g5
andcc %o4, %o3, %g0
be 1b
st %g5, [%o0]
Expand Down

0 comments on commit 5d15fc5

Please sign in to comment.