From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg2js-0007XU-9h for qemu-devel@nongnu.org; Tue, 04 Dec 2012 19:21:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tg2jp-0002C9-SN for qemu-devel@nongnu.org; Tue, 04 Dec 2012 19:21:24 -0500 Received: from mail-qc0-f173.google.com ([209.85.216.173]:43560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfyPJ-0000nR-Ig for qemu-devel@nongnu.org; Tue, 04 Dec 2012 14:43:53 -0500 Received: by mail-qc0-f173.google.com with SMTP id b12so2322951qca.4 for ; Tue, 04 Dec 2012 11:43:52 -0800 (PST) Sender: Richard Henderson Message-ID: <50BE5273.7090505@twiddle.net> Date: Tue, 04 Dec 2012 13:43:47 -0600 From: Richard Henderson MIME-Version: 1.0 References: <1354632583-22403-1-git-send-email-petar.jovanovic@rt-rk.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-mips: Fix incorrect shift for SHILO and SHILOV List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: petarj@mips.com, Petar Jovanovic , aurelien@aurel32.net, qemu-devel@nongnu.org On 2012-12-04 13:00, Blue Swirl wrote: >> > + if (rs5_0 == 0) >> > + return; > The check should be moved to translation time so that the call to this > helper is not generated at all. No, we'd do that only if this value were an immediate. Branch over helper is not an optimization for an edge case runtime value. r~