[4/4] Use scan-tree-dump instead of scan-tree-dump-times for some vect tests
diff mbox series

Message ID mpth83jvevd.fsf@arm.com
State New
Headers show
Series
  • Vector epilogues vs. mixed vector sizes
Related show

Commit Message

Richard Sandiford Nov. 4, 2019, 3:29 p.m. UTC
With later patches, we're able to vectorise the epilogues of these tests
on AArch64 and so get two instances of "vectorizing stmts using SLP".
Although it would be possible with a bit of effort to predict when
this happens, it doesn't seem important whether we get 1 vs. 2
occurrences.  All that matters is zero vs. nonzero.


2019-11-04  Richard Sandiford  <richard.sandiford@arm.com>

gcc/testsuite/
	* gcc.dg/vect/slp-9.c: Use scan-tree-dump rather than
	scan-tree-dump-times.
	* gcc.dg/vect/slp-widen-mult-s16.c: Likewise.
	* gcc.dg/vect/slp-widen-mult-u8.c: Likewise.

Comments

Richard Biener Nov. 6, 2019, 11:57 a.m. UTC | #1
On Mon, Nov 4, 2019 at 4:30 PM Richard Sandiford
<richard.sandiford@arm.com> wrote:
>
> With later patches, we're able to vectorise the epilogues of these tests
> on AArch64 and so get two instances of "vectorizing stmts using SLP".
> Although it would be possible with a bit of effort to predict when
> this happens, it doesn't seem important whether we get 1 vs. 2
> occurrences.  All that matters is zero vs. nonzero.

OK.

>
> 2019-11-04  Richard Sandiford  <richard.sandiford@arm.com>
>
> gcc/testsuite/
>         * gcc.dg/vect/slp-9.c: Use scan-tree-dump rather than
>         scan-tree-dump-times.
>         * gcc.dg/vect/slp-widen-mult-s16.c: Likewise.
>         * gcc.dg/vect/slp-widen-mult-u8.c: Likewise.
>
> Index: gcc/testsuite/gcc.dg/vect/slp-9.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/vect/slp-9.c   2019-03-08 18:15:02.276871200 +0000
> +++ gcc/testsuite/gcc.dg/vect/slp-9.c   2019-11-04 15:18:14.656674872 +0000
> @@ -44,5 +44,5 @@ int main (void)
>  }
>
>  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_widen_mult_hi_to_si } } }*/
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_widen_mult_hi_to_si } } } */
> +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target vect_widen_mult_hi_to_si } } } */
>
> Index: gcc/testsuite/gcc.dg/vect/slp-widen-mult-s16.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/vect/slp-widen-mult-s16.c      2019-03-08 18:15:02.304871094 +0000
> +++ gcc/testsuite/gcc.dg/vect/slp-widen-mult-s16.c      2019-11-04 15:18:14.656674872 +0000
> @@ -38,5 +38,5 @@ int main (void)
>  }
>
>  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
> +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
>
> Index: gcc/testsuite/gcc.dg/vect/slp-widen-mult-u8.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/vect/slp-widen-mult-u8.c       2019-03-08 18:15:02.292871138 +0000
> +++ gcc/testsuite/gcc.dg/vect/slp-widen-mult-u8.c       2019-11-04 15:18:14.668674793 +0000
> @@ -38,5 +38,5 @@ int main (void)
>  }
>
>  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_mult_qi_to_hi || vect_unpack } } } } */
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
> +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
>

Patch
diff mbox series

Index: gcc/testsuite/gcc.dg/vect/slp-9.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/slp-9.c	2019-03-08 18:15:02.276871200 +0000
+++ gcc/testsuite/gcc.dg/vect/slp-9.c	2019-11-04 15:18:14.656674872 +0000
@@ -44,5 +44,5 @@  int main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_widen_mult_hi_to_si } } }*/
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_widen_mult_hi_to_si } } } */
+/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target vect_widen_mult_hi_to_si } } } */
 
Index: gcc/testsuite/gcc.dg/vect/slp-widen-mult-s16.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/slp-widen-mult-s16.c	2019-03-08 18:15:02.304871094 +0000
+++ gcc/testsuite/gcc.dg/vect/slp-widen-mult-s16.c	2019-11-04 15:18:14.656674872 +0000
@@ -38,5 +38,5 @@  int main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
+/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
 
Index: gcc/testsuite/gcc.dg/vect/slp-widen-mult-u8.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/slp-widen-mult-u8.c	2019-03-08 18:15:02.292871138 +0000
+++ gcc/testsuite/gcc.dg/vect/slp-widen-mult-u8.c	2019-11-04 15:18:14.668674793 +0000
@@ -38,5 +38,5 @@  int main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_mult_qi_to_hi || vect_unpack } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
+/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */