From: Aurelien Jarno <aurelien@aurel32.net>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target-xtensa: de-optimize EXTUI
Date: Wed, 26 Sep 2012 08:38:19 +0200 [thread overview]
Message-ID: <20120926063819.GL23819@ohm.aurel32.net> (raw)
In-Reply-To: <CAMo8BfKKX1MOch-FdkPudLF9VgLa6L2GCMoBz_QRxap+RjvU9Q@mail.gmail.com>
On Wed, Sep 26, 2012 at 03:05:18AM +0400, Max Filippov wrote:
> On Wed, Sep 26, 2012 at 2:57 AM, Aurelien Jarno <aurelien@aurel32.net> wrote:
> > Now that and with 0xff, 0xffff and 0xffffffff is optimized in
> > tcg/tcg-op.h, there is no need to do it in target-xtensa/translate.c.
> >
> > Cc: Max Filippov <jcmvbkbc@gmail.com>
> > Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> > ---
> > target-xtensa/translate.c | 15 +--------------
> > 1 file changed, 1 insertion(+), 14 deletions(-)
> >
> > diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c
> > index ba3ffcb..c1358ee 100644
> > --- a/target-xtensa/translate.c
> > +++ b/target-xtensa/translate.c
> > @@ -1835,20 +1835,7 @@ static void disas_xtensa_insn(DisasContext *dc)
> > } else {
> > tcg_gen_mov_i32(tmp, cpu_R[RRR_T]);
> > }
>
> I guess shri above may be de-optimized as well.
> In any case Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Good catch, I looked for some patterns in the targets code, and didn't
see this one. I'll send an updated patch.
> > -
> > - switch (maskimm) {
> > - case 0xff:
> > - tcg_gen_ext8u_i32(cpu_R[RRR_R], tmp);
> > - break;
> > -
> > - case 0xffff:
> > - tcg_gen_ext16u_i32(cpu_R[RRR_R], tmp);
> > - break;
> > -
> > - default:
> > - tcg_gen_andi_i32(cpu_R[RRR_R], tmp, maskimm);
> > - break;
> > - }
> > + tcg_gen_andi_i32(cpu_R[RRR_R], tmp, maskimm);
> > tcg_temp_free(tmp);
> > }
> > break;
> > --
> > 1.7.10.4
> >
> >
>
> --
> Thanks.
> -- Max
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
prev parent reply other threads:[~2012-09-26 6:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 22:57 [Qemu-devel] [PATCH] target-xtensa: de-optimize EXTUI Aurelien Jarno
2012-09-25 23:05 ` Max Filippov
2012-09-26 6:38 ` Aurelien Jarno [this message]
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=20120926063819.GL23819@ohm.aurel32.net \
--to=aurelien@aurel32.net \
--cc=jcmvbkbc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).