From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7051 Path: news.gmane.org!not-for-mail From: Denys Vlasenko Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] x86_64/memset: use "small block" code for blocks up to 30 bytes long Date: Mon, 16 Feb 2015 11:09:25 +0100 Message-ID: References: <1423845589-5920-1-git-send-email-vda.linux@googlemail.com> <20150214193533.GK23507@brightrain.aerifal.cx> <20150215040655.GM23507@brightrain.aerifal.cx> <20150215150313.GO23507@brightrain.aerifal.cx> <20150215225559.GV23507@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1424081406 23815 80.91.229.3 (16 Feb 2015 10:10:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2015 10:10:06 +0000 (UTC) Cc: musl To: Rich Felker Original-X-From: musl-return-7064-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 16 11:10:05 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YNIcs-0007yJ-LB for gllmg-musl@m.gmane.org; Mon, 16 Feb 2015 11:10:02 +0100 Original-Received: (qmail 22482 invoked by uid 550); 16 Feb 2015 10:10:00 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22439 invoked from network); 16 Feb 2015 10:09:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=vrnQpkId0MOqVwl7uZEI8F7GpE8O/ZPGJ1cSN8yiz3E=; b=UV6argza7cGActCN3ypKzLs0OxqqRBSpMLM7K55ycFet8agn3xD8zFdfij25a9k5uP gENQdQIN49HSkR6flkJYAikDtQ6gVrdXl9tLX2RE/2w8RK3N6Mv7D5rJwUTpE5XLcihg i+Q/CFlFmIB+Xlx3aHgEtFFd9dSM5xQ1Sams8Za+TKZNJjksaw2L4hF0y/Y3Z9UXzMlm Ou3vNJd4lZpo2lkFwONpRJo8/hRFTtL1siuHrDo3/kwH+7SmJdpFyvuLZYatjSCvYtfI QLMPvQEgxyzUfDDB6I8ppT/T9qrHGs2pFN1+Ws2EwJAe2eDmNvUR2fDVnyWrSfRkGPsR eOZA== X-Received: by 10.140.23.199 with SMTP id 65mr200025qgp.84.1424081385350; Mon, 16 Feb 2015 02:09:45 -0800 (PST) In-Reply-To: <20150215225559.GV23507@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7051 Archived-At: On Sun, Feb 15, 2015 at 11:55 PM, Rich Felker wrote: >> "sub $8,%rcx" can be folded into lea. > > No, it can't, for the above reason. Why can't? lea -9(%rdx), %rcx will also underflow for %rdx == 0, just like "lea -1".