public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marcus Shawcroft <marcus.shawcroft@gmail.com>
To: Tejas Belagod <tbelagod@arm.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch, AArch64] Make <su>mull<q> target tests more robust.
Date: Tue, 08 Jan 2013 14:50:00 -0000	[thread overview]
Message-ID: <CAFqB+Pz8Xbsqxqtb5wOcvMGcCupo5A+uZN25CaxH6LtwBnTjDQ@mail.gmail.com> (raw)
In-Reply-To: <50EC2CB7.7060609@arm.com>

OK
/Marcus

On 8 January 2013 14:27, Tejas Belagod <tbelagod@arm.com> wrote:
>
> Hi,
>
> Attached is a patch that makes the test case for <su>mull<q> more robust by
> looking for {scan-assembler "smull v[0-9]+\.<type>}" where <type> = {8h,
> 4s, 2d} and "smull2 v[0-9]+\.<type>}" where <type> = {8h, 4s, 2d} instead of
> looking for a specific number of occurances of "smull v" which can vary with
> the vectorization factor.
>
> Tested on aarch64-4.7-branch and trunk for aarch64-none-elf. OK to commit on
> aarch64-4.7-branch and trunk?
>
> Thanks,
> Tejas Belagod
> ARM.
>
> 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
>
> testsuite/
>         * gcc.target/aarch64/vect-mull-compile.c: Explicitly scan for
>         instructions generated instead of number of occurances.
> diff --git a/gcc/testsuite/gcc.target/aarch64/vect-mull-compile.c
> b/gcc/testsuite/gcc.target/aarch64/vect-mull-compile.c
> index e51eaee..e90c97f 100644
> --- a/gcc/testsuite/gcc.target/aarch64/vect-mull-compile.c
> +++ b/gcc/testsuite/gcc.target/aarch64/vect-mull-compile.c
> @@ -10,7 +10,15 @@ DEF_MULL2 (DEF_MULLB)
>  DEF_MULL2 (DEF_MULLH)
>  DEF_MULL2 (DEF_MULLS)
>
> -/* { dg-final { scan-assembler-times "smull v" 3 } } */
> -/* { dg-final { scan-assembler-times "smull2 v" 3 } } */
> -/* { dg-final { scan-assembler-times "umull v" 3 } } */
> -/* { dg-final { scan-assembler-times "umull2 v" 3 } } */
> +/* { dg-final { scan-assembler "smull\\tv\[0-9\]+\.8h"} } */
> +/* { dg-final { scan-assembler "smull\\tv\[0-9\]+\.4s"} } */
> +/* { dg-final { scan-assembler "smull\\tv\[0-9\]+\.2d"} } */
> +/* { dg-final { scan-assembler "umull\\tv\[0-9\]+\.8h"} } */
> +/* { dg-final { scan-assembler "umull\\tv\[0-9\]+\.4s"} } */
> +/* { dg-final { scan-assembler "umull\\tv\[0-9\]+\.2d"} } */
> +/* { dg-final { scan-assembler "smull2\\tv\[0-9\]+\.8h"} } */
> +/* { dg-final { scan-assembler "smull2\\tv\[0-9\]+\.4s"} } */
> +/* { dg-final { scan-assembler "smull2\\tv\[0-9\]+\.2d"} } */
> +/* { dg-final { scan-assembler "umull2\\tv\[0-9\]+\.8h"} } */
> +/* { dg-final { scan-assembler "umull2\\tv\[0-9\]+\.4s"} } */
> +/* { dg-final { scan-assembler "umull2\\tv\[0-9\]+\.2d"} } */

      reply	other threads:[~2013-01-08 14:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-08 14:27 Tejas Belagod
2013-01-08 14:50 ` Marcus Shawcroft [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=CAFqB+Pz8Xbsqxqtb5wOcvMGcCupo5A+uZN25CaxH6LtwBnTjDQ@mail.gmail.com \
    --to=marcus.shawcroft@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=tbelagod@arm.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).