From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44299 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSCvk-0002Hf-GP for qemu-devel@nongnu.org; Fri, 25 Jun 2010 13:43:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSC1u-0006pW-T8 for qemu-devel@nongnu.org; Fri, 25 Jun 2010 12:45:27 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:39166) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSC1u-0006pS-Ot for qemu-devel@nongnu.org; Fri, 25 Jun 2010 12:45:26 -0400 Received: by vws10 with SMTP id 10so4872317vws.4 for ; Fri, 25 Jun 2010 09:45:26 -0700 (PDT) Sender: Richard Henderson Message-ID: <4C24DD0D.8000404@twiddle.net> Date: Fri, 25 Jun 2010 09:45:01 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1276562128-604-1-git-send-email-rth@twiddle.net> <1276562128-604-3-git-send-email-rth@twiddle.net> <20100617194019.GA3085@hall.aurel32.net> In-Reply-To: <20100617194019.GA3085@hall.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 2/2] tcg-s390: New TCG Target. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org, agraf@suse.de On 06/17/2010 12:40 PM, Aurelien Jarno wrote: >> + /* Handle the modifiers. */ >> + if (ct & TCG_CT_CONST_NEG) { >> + val = -val; >> + } > > This "modifier" is only used by subi. Wouldn't it be better to use a > TCG_CT_CONST_SUBI instead? Not really. This negation needs to happen *before* the sign-extension of TCG_CT_CONST_32 in order to get correct results. While I could do a CONST_SUBI, I would have to handle CONST_32 again within the CONST_SUBI clause and I would not consider that better. r~