This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11230] memchr overshoots on ia64


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]