Received: from eggs.gnu.org ([140.186.70.92]:59227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1fLQ-0000Jp-48 for qemu-devel@nongnu.org; Thu, 08 Sep 2011 10:12:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1fLO-0005cO-PX for qemu-devel@nongnu.org; Thu, 08 Sep 2011 10:12:44 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:57443 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1fLO-0005cD-JQ for qemu-devel@nongnu.org; Thu, 08 Sep 2011 10:12:42 -0400 Date: Thu, 8 Sep 2011 18:12:29 +0400 (MSD) From: malc In-Reply-To: <1315470191-2899-1-git-send-email-rth@twiddle.net> Message-ID: References: <1315470191-2899-1-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] target-i386: Compute all flag data inside %cl != 0 test. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Thu, 8 Sep 2011, Richard Henderson wrote: > The (x << (cl - 1)) quantity is only used if CL != 0. Move the > computation of that quantity nearer its use. > > This avoids the creation of undefined TCG operations when the > constant propagation optimization proves that CL == 0, and thus > CL-1 is outside the range [0-wordsize). > > Signed-off-by: Richard Henderson Applied, thanks. [..snip..] -- mailto:av1474@comtv.ru