From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7252 invoked by alias); 1 Feb 2010 16:50:16 -0000 Received: (qmail 7041 invoked by uid 48); 1 Feb 2010 16:49:58 -0000 Date: Mon, 01 Feb 2010 16:50:00 -0000 Message-ID: <20100201164958.7040.qmail@sourceware.org> From: "hjl dot tools at gmail dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20100128025427.11230.jrnieder@gmail.com> References: <20100128025427.11230.jrnieder@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/11230] memchr overshoots on ia64 X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00001.txt.bz2 ------- 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.