public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, AArch64] Make <su>mull<q> target tests more robust.
@ 2013-01-08 14:27 Tejas Belagod
  2013-01-08 14:50 ` Marcus Shawcroft
  0 siblings, 1 reply; 2+ messages in thread
From: Tejas Belagod @ 2013-01-08 14:27 UTC (permalink / raw)
  To: gcc-patches; +Cc: Marcus Shawcroft

[-- Attachment #1: Type: text/plain, Size: 678 bytes --]


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.

[-- Attachment #2: smull-2.txt --]
[-- Type: text/plain, Size: 1360 bytes --]

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"} } */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch, AArch64] Make <su>mull<q> target tests more robust.
  2013-01-08 14:27 [Patch, AArch64] Make <su>mull<q> target tests more robust Tejas Belagod
@ 2013-01-08 14:50 ` Marcus Shawcroft
  0 siblings, 0 replies; 2+ messages in thread
From: Marcus Shawcroft @ 2013-01-08 14:50 UTC (permalink / raw)
  To: Tejas Belagod; +Cc: gcc-patches

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"} } */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-08 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 14:27 [Patch, AArch64] Make <su>mull<q> target tests more robust Tejas Belagod
2013-01-08 14:50 ` Marcus Shawcroft

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).