From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ0L2-0001KH-FH for qemu-devel@nongnu.org; Fri, 20 Mar 2015 13:04:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZ0Kz-0008GZ-9C for qemu-devel@nongnu.org; Fri, 20 Mar 2015 13:04:00 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:33729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ0Kz-0008GH-50 for qemu-devel@nongnu.org; Fri, 20 Mar 2015 13:03:57 -0400 Received: by qgfa8 with SMTP id a8so98248489qgf.0 for ; Fri, 20 Mar 2015 10:03:56 -0700 (PDT) Sender: Richard Henderson Message-ID: <550C52F7.4040300@twiddle.net> Date: Fri, 20 Mar 2015 10:03:51 -0700 From: Richard Henderson MIME-Version: 1.0 References: <5509A8CE.2040905@hotmail.com> <5509DADC.500@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/6 v6] target-tilegx: Firstly add TILE-Gx with minimized features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chen Gang , Peter Maydell , Chris Metcalf , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , Riku Voipio , "walt@tilera.com" Cc: qemu-devel On 03/18/2015 07:04 PM, Chen Gang wrote: > For me, I am not quite sure about it, the related functional description > is: > > rf[Dest] = signExtend32 ((int32_t) rf[SrcA] * (int32_t) rf[SrcB]); > > Do you mean it is equal to: > > rf[Dest] = signExtend32 (rf[SrcA] * rf[SrcB]); Yes, of course. Think about how multiplication works. Bit N of the input cannot affect any output bit in [N-1,0]. Thus the first sign-extend cannot affect the output. r~