qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: "Lucas Mateus Castro(alqotel)" <lucas.araujo@eldorado.org.br>,
	qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: "Daniel Henrique Barboza" <danielhb413@gmail.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	"David Gibson" <david@gibson.dropbear.id.au>,
	"Greg Kurz" <groug@kaod.org>
Subject: Re: [PATCH v2 03/12] target/ppc: Move V(ADD|SUB)CUW to decodetree and use gvec
Date: Mon, 10 Oct 2022 12:22:57 -0700	[thread overview]
Message-ID: <063bd050-a09e-b099-b50e-7d673e061ee1@linaro.org> (raw)
In-Reply-To: <20221010191356.83659-4-lucas.araujo@eldorado.org.br>

On 10/10/22 12:13, Lucas Mateus Castro(alqotel) wrote:
> From: "Lucas Mateus Castro (alqotel)"<lucas.araujo@eldorado.org.br>
> 
> This patch moves VADDCUW and VSUBCUW to decodtree with gvec using an
> implementation based on the helper, with the main difference being
> changing the -1 (aka all bits set to 1) result returned by cmp when
> true to +1. It also implemented a .fni4 version of those instructions
> and dropped the helper.
> 
> vaddcuw:
> rept    loop    master             patch
> 8       12500   0,01008200         0,00612400 (-39.3%)
> 25      4000    0,01091500         0,00471600 (-56.8%)
> 100     1000    0,01332500         0,00593700 (-55.4%)
> 500     200     0,01998500         0,01275700 (-36.2%)
> 2500    40      0,04704300         0,04364300 (-7.2%)
> 8000    12      0,10748200         0,11241000 (+4.6%)
> 
> vsubcuw:
> rept    loop    master             patch
> 8       12500   0,01226200         0,00571600 (-53.4%)
> 25      4000    0,01493500         0,00462100 (-69.1%)
> 100     1000    0,01522700         0,00455100 (-70.1%)
> 500     200     0,02384600         0,01133500 (-52.5%)
> 2500    40      0,04935200         0,03178100 (-35.6%)
> 8000    12      0,09039900         0,09440600 (+4.4%)
> 
> Overall there was a gain in performance, but the TCGop code was still
> slightly bigger in the new version (it went from 4 to 5).
> 
> Signed-off-by: Lucas Mateus Castro (alqotel)<lucas.araujo@eldorado.org.br>
> ---
>   target/ppc/helper.h                 |  2 -
>   target/ppc/insn32.decode            |  2 +
>   target/ppc/int_helper.c             | 18 ---------
>   target/ppc/translate/vmx-impl.c.inc | 61 +++++++++++++++++++++++++++--
>   target/ppc/translate/vmx-ops.c.inc  |  3 +-
>   5 files changed, 60 insertions(+), 26 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~


  reply	other threads:[~2022-10-10 19:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-10 19:13 [PATCH v2 00/12] VMX/VSX instructions with gvec Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 01/12] target/ppc: Moved VMLADDUHM to decodetree and use gvec Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 02/12] target/ppc: Move VMH[R]ADDSHS instruction to decodetree Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 03/12] target/ppc: Move V(ADD|SUB)CUW to decodetree and use gvec Lucas Mateus Castro(alqotel)
2022-10-10 19:22   ` Richard Henderson [this message]
2022-10-10 19:13 ` [PATCH v2 04/12] target/ppc: Move VNEG[WD] to decodtree " Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 05/12] target/ppc: Move VPRTYB[WDQ] to decodetree " Lucas Mateus Castro(alqotel)
2022-10-10 19:26   ` Richard Henderson
2022-10-10 19:13 ` [PATCH v2 06/12] target/ppc: Move VAVG[SU][BHW] " Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 07/12] target/ppc: Move VABSDU[BHW] " Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 08/12] target/ppc: Use gvec to decode XV[N]ABS[DS]P/XVNEG[DS]P Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 09/12] target/ppc: Use gvec to decode XVCPSGN[SD]P Lucas Mateus Castro(alqotel)
2022-10-10 19:29   ` Richard Henderson
2022-10-10 19:13 ` [PATCH v2 10/12] target/ppc: Moved XVTSTDC[DS]P to decodetree Lucas Mateus Castro(alqotel)
2022-10-10 19:13 ` [PATCH v2 11/12] target/ppc: Moved XSTSTDC[QDS]P " Lucas Mateus Castro(alqotel)
2022-10-10 19:31   ` Richard Henderson
2022-10-10 19:13 ` [PATCH v2 12/12] target/ppc: Use gvec to decode XVTSTDC[DS]P Lucas Mateus Castro(alqotel)
2022-10-10 19:42   ` Richard Henderson
2022-10-10 19:53     ` Lucas Mateus Martins Araujo e Castro

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=063bd050-a09e-b099-b50e-7d673e061ee1@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=clg@kaod.org \
    --cc=danielhb413@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=groug@kaod.org \
    --cc=lucas.araujo@eldorado.org.br \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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).