From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgH1N-00079R-IV for qemu-devel@nongnu.org; Wed, 05 Dec 2012 10:36:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgH1B-0003rp-VL for qemu-devel@nongnu.org; Wed, 05 Dec 2012 10:36:25 -0500 Received: from mail-qc0-f173.google.com ([209.85.216.173]:49775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgH1B-0003rl-Rk for qemu-devel@nongnu.org; Wed, 05 Dec 2012 10:36:13 -0500 Received: by mail-qc0-f173.google.com with SMTP id b12so2798714qca.4 for ; Wed, 05 Dec 2012 07:36:13 -0800 (PST) Sender: Richard Henderson Message-ID: <50BF69EA.8080306@twiddle.net> Date: Wed, 05 Dec 2012 09:36:10 -0600 From: Richard Henderson MIME-Version: 1.0 References: <1354663750-2163-1-git-send-email-petar.jovanovic@rt-rk.com> In-Reply-To: <1354663750-2163-1-git-send-email-petar.jovanovic@rt-rk.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-mips: Fix incorrect shift for SHILO and SHILOV List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Petar Jovanovic Cc: rth7680@gmail.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, petarj@mips.com, afaerber@suse.de, aurelien@aurel32.net On 2012-12-04 17:29, Petar Jovanovic wrote: > rs5_0 = (int8_t)(rs5_0 << 2) >> 2; This is more portably written as rs5_0 = (rs5_0 ^ 0x20) - 0x20; r~