From: Nathan Froyd <froydnj@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target-ppc: fix evmergelo and evmergelohi
Date: Tue, 7 Jul 2009 09:04:01 -0700 [thread overview]
Message-ID: <20090707160401.GQ11286@codesourcery.com> (raw)
In-Reply-To: <1244148401-12191-1-git-send-email-froydnj@codesourcery.com>
On Thu, Jun 04, 2009 at 01:46:41PM -0700, Nathan Froyd wrote:
> For 32-bit PPC targets, we translated:
>
> evmergelo rX, rX, rY
>
> as:
>
> rX-lo = rY-lo
> rX-hi = rX-lo
>
> which is wrong, because we should be transferring rX-lo first. This
> problem is fixed by swapping the order in which we write the parts of
> rX.
>
> Similarly, we translated:
>
> evmergelohi rX, rX, rY
>
> as:
>
> rX-lo = rY-hi
> rX-hi = rX-lo
>
> In this case, we can't swap the assignment statements, because that
> would just cause problems for:
>
> evmergelohi rX, rY, rX
>
> Instead, we detect the first case and save rX-lo in a temporary
> variable:
>
> tmp = rX-lo
> rX-lo = rY-hi
> rX-hi = tmp
>
> These problems don't occur on PPC64 targets because we don't split the
> SPE registers into hi/lo parts for such targets.
Ping again.
-Nathan
next prev parent reply other threads:[~2009-07-07 16:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 20:46 [Qemu-devel] [PATCH] target-ppc: fix evmergelo and evmergelohi Nathan Froyd
2009-06-23 19:48 ` Nathan Froyd
2009-07-07 16:04 ` Nathan Froyd [this message]
2009-07-12 21:38 ` Aurelien Jarno
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=20090707160401.GQ11286@codesourcery.com \
--to=froydnj@codesourcery.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.