All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blauwirbel@gmail.com>
Subject: Re: [Qemu-devel] TCG native 32->64 concatenation
Date: Sun, 7 Sep 2008 19:43:03 +0100	[thread overview]
Message-ID: <200809071943.04030.paul@codesourcery.com> (raw)
In-Reply-To: <f43fc5580809071115s1013a287tb31297f1620119f3@mail.gmail.com>

On Sunday 07 September 2008, Blue Swirl wrote:
> On 9/7/08, Paul Brook <paul@codesourcery.com> wrote:
> > The patch below adds a new concat_i32_i64 TCG op.  This allows a pair of
> >  32-bit values to be efficiently combined to form a 64-bit value.  I've
> >  converted all the cases I could find to use this, and tested the arm
> > code on both 32 and 64-bit hosts.
>
> Sparc's helper_pack64 does the same thing, I used it to reduce
> register pressure on i386 for 64 bit stores.

They're slightly different because helper_pack64 takes target_ulong arguments.
Replacing helper_pack64 with concat_i32_i64 would need explicit truncation on 
64-bit targets. The current TCG implementation will work if you use the wrong 
register type, however I don't want targets relying on that.

Paul

  reply	other threads:[~2008-09-07 18:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-07 16:53 [Qemu-devel] TCG native 32->64 concatenation Paul Brook
2008-09-07 18:15 ` Blue Swirl
2008-09-07 18:43   ` Paul Brook [this message]
2008-09-14 17:03 ` Aurelien Jarno
2008-09-15 23:16 ` andrzej zaborowski

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=200809071943.04030.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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.