All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: "Chen Gang" <xili_gchen_5257@hotmail.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Chris Metcalf" <cmetcalf@ezchip.com>,
	"Andreas Färber" <afaerber@suse.de>,
	"Riku Voipio" <riku.voipio@iki.fi>,
	"walt@tilera.com" <walt@tilera.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/6 v6] target-tilegx: Firstly add TILE-Gx with minimized features
Date: Fri, 20 Mar 2015 10:03:51 -0700	[thread overview]
Message-ID: <550C52F7.4040300@twiddle.net> (raw)
In-Reply-To: <BLU436-SMTP153CA5F4AA162B115553228B9010@phx.gbl>

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~

  reply	other threads:[~2015-03-20 17:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5509A8CE.2040905@hotmail.com>
2015-03-18 16:34 ` [Qemu-devel] [PATCH 1/6 v6] target-tilegx: Firstly add TILE-Gx with minimized features Chen Gang
2015-03-18 20:06   ` Richard Henderson
2015-03-19  2:04     ` Chen Gang
2015-03-20 17:03       ` Richard Henderson [this message]
2015-03-20 22:55         ` Chen Gang
2015-03-18 16:35 ` [Qemu-devel] [PATCH 2/6 v6] linux-user: tilegx: Firstly add architecture related features Chen Gang
2015-03-18 16:37 ` [Qemu-devel] [PATCH 3/6 v6] linux-user: tilegx: Add target features support within qemu Chen Gang
2015-03-18 16:38 ` [Qemu-devel] [PATCH 4/6 v6] linux-user: Support tilegx architecture in syscall Chen Gang
2015-03-18 16:39 ` [Qemu-devel] [PATCH 5/6 v6] linux-user: Support tilegx architecture in linux-user Chen Gang
2015-03-18 16:39 ` [Qemu-devel] [PATCH 6/6 v6] linux-user/syscall.c: conditionalize syscalls which are not defined in tilegx Chen Gang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=550C52F7.4040300@twiddle.net \
    --to=rth@twiddle.net \
    --cc=afaerber@suse.de \
    --cc=cmetcalf@ezchip.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    --cc=walt@tilera.com \
    --cc=xili_gchen_5257@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.