This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11230] memchr overshoots on ia64
- From: "hjl dot tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Feb 2010 16:49:58 -0000
- Subject: [Bug libc/11230] memchr overshoots on ia64
- References: <20100128025427.11230.jrnieder@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-01 16:49 -------
(In reply to comment #6)
> In your patch, it seems this part is wrong
>
> + add last = str, in2 // last byte
>
> The last byte to test has for address (str + in2 - 1). Substracting 1 to last
> make the testcase work here.
The check is
adds ret0 = 8, ret0;; // load the next unchecked 8byte
cmp.geu p6, p0 = ret0, last // don't go over the last byte
It returns if ret0 >= (str + in2). Did I miss something?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11230
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.