[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r9313 - in /fsf/trunk/libc: ChangeLog sysdeps/ia64/memchr.S
- To: commits@xxxxxxxxxx
- Subject: [commits] r9313 - in /fsf/trunk/libc: ChangeLog sysdeps/ia64/memchr.S
- From: eglibc@xxxxxxxxxx
- Date: Sat, 21 Nov 2009 08:04:07 -0000
Author: eglibc
Date: Sat Nov 21 00:04:05 2009
New Revision: 9313
Log:
Import glibc-mainline for 2009-11-21
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/sysdeps/ia64/memchr.S
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sat Nov 21 00:04:05 2009
@@ -1,3 +1,9 @@
+2009-11-18 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+
+ [BZ #10162]
+ * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
+ than software pipeline. Properly recover from shorter read.
+
2009-11-19 Ulrich Drepper <drepper@xxxxxxxxxx>
[BZ #10958]
Modified: fsf/trunk/libc/sysdeps/ia64/memchr.S
==============================================================================
--- fsf/trunk/libc/sysdeps/ia64/memchr.S (original)
+++ fsf/trunk/libc/sysdeps/ia64/memchr.S Sat Nov 21 00:04:05 2009
@@ -71,8 +71,7 @@
cmp.ne p7, p0 = r0, r0 // clear p7
extr.u chr = in1, 0, 8 // chr = (unsigned char) in1
mov len = in2
- // use a simple loop on data shorter than software pipeline
- cmp.gtu p6, p0 = ((MEMLAT + 1) * 8), in2
+ cmp.gtu p6, p0 = 16, in2 // use a simple loop for short
(p6) br.cond.spnt .srchfew ;; // searches
sub loopcnt = 8, tmp // loopcnt = 8 - tmp
cmp.eq p6, p0 = tmp, r0
@@ -127,7 +126,16 @@
br.ret.sptk.many b0
.recovery:
- adds ret0 = -((MEMLAT + 1) * 8), ret0;;
+#if MEMLAT != 6
+# error "MEMLAT must be 6!"
+#endif
+(p[MEMLAT-6]) add ret0 = -8, ret0;;
+(p[MEMLAT-5]) add ret0 = -8, ret0;;
+(p[MEMLAT-4]) add ret0 = -8, ret0;;
+(p[MEMLAT-3]) add ret0 = -8, ret0;;
+(p[MEMLAT-2]) add ret0 = -8, ret0;;
+(p[MEMLAT-1]) add ret0 = -8, ret0;;
+(p[MEMLAT]) add ret0 = -8, ret0;;
(p[MEMLAT+1]) add ret0 = -8, ret0;;
(p[MEMLAT+2]) add ret0 = -8, ret0;;
.l4: