1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

Sparc memchr/memcmp/strncmp fixes from Il'ya Malakhov.

[BZ #17825]
	* sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
	* sysdeps/sparc/sparc64/memcmp.S: Likewise.
	* sysdeps/sparc/sparc64/strncmp.S: Likewise.
This commit is contained in:
David S. Miller
2015-04-16 19:40:31 -07:00
parent d1e44df1fa
commit aa4980fc31
4 changed files with 13 additions and 5 deletions

View File

@@ -63,7 +63,8 @@ ENTRY(__memchr)
be,pn %XCC, 12f /* CTI */
#endif
sll %o1, 8, %g3 /* IEU0 Group */
add %o0, %o2, %o2 /* IEU1 */
addcc %o0, %o2, %o2 /* IEU1 */
movcs %XCC, -1, %o2 /* IEU0 Group */
sethi %hi(0x01010101), %g1 /* IEU0 Group */
or %g3, %o1, %g3 /* IEU1 */