diff options
author | David S. Miller <davem@davemloft.net> | 2015-04-16 19:40:31 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-17 10:26:14 -0700 |
commit | aa4980fc31e9ce176fe954bd0f29bcd65a61556a (patch) | |
tree | 61bc6a99b44a56bcf031f73116d1f6507ac84b49 /sysdeps/sparc/sparc64/memcmp.S | |
parent | d1e44df1fa5fefd8a083f6c1e909bbcdc97c6438 (diff) | |
download | glibc-aa4980fc31e9ce176fe954bd0f29bcd65a61556a.tar glibc-aa4980fc31e9ce176fe954bd0f29bcd65a61556a.tar.gz glibc-aa4980fc31e9ce176fe954bd0f29bcd65a61556a.tar.bz2 glibc-aa4980fc31e9ce176fe954bd0f29bcd65a61556a.zip |
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.
Diffstat (limited to 'sysdeps/sparc/sparc64/memcmp.S')
-rw-r--r-- | sysdeps/sparc/sparc64/memcmp.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/sparc/sparc64/memcmp.S b/sysdeps/sparc/sparc64/memcmp.S index 18ed0ce77a..552307edeb 100644 --- a/sysdeps/sparc/sparc64/memcmp.S +++ b/sysdeps/sparc/sparc64/memcmp.S @@ -51,7 +51,7 @@ ENTRY(memcmp) 2: mov %g1, %o3 /* IEU0 Group */ subcc %o2, 8, %o2 /* IEU1 */ - bl,pn %XCC, 5f /* CTI */ + bcs,pn %XCC, 5f /* CTI */ ldxa [%o0] ASI_PNF, %g1 /* Load Group */ mov %g2, %o4 /* IEU0 */ ldxa [%o0 + %o1] ASI_PNF, %g2 /* Load Group */ @@ -125,7 +125,7 @@ ENTRY(memcmp) ldxa [%o0] ASI_PNF, %g5 /* Load */ subcc %o2, 8, %o2 /* IEU1 Group */ - bl,pn %XCC, 6b /* CTI */ + bcs,pn %XCC, 6b /* CTI */ or %o4, %o5, %o4 /* IEU0 */ cmp %o3, %o4 /* IEU1 Group */ |