diff mbox series

[testsuite] Fix PR94023 to guard case under vect_hw_misalign

Message ID 8d433ab9-986a-88fc-10a3-f41f14c3f744@linux.ibm.com
State New
Headers show
Series [testsuite] Fix PR94023 to guard case under vect_hw_misalign | expand

Commit Message

Kewen.Lin March 4, 2020, 7:10 a.m. UTC
Hi,

As PR94023 shows, the expected SLP requires misaligned vector access
support.  This patch is to guard the check under the target condition
vect_hw_misalign to ensure that.

Verified it on ppc64-redhat-linux (Power7 BE).

Is it ok for trunk, and backport to GCC 9 after some burn-in time?


BR,
Kewen
--------

gcc/testsuite/ChangeLog

2020-03-04  Kewen Lin  <linkw@gcc.gnu.org>

	PR testsuite/94023
	* gcc.dg/vect/slp-perm-12.c: Expect loop vectorized messages only on
	vect_hw_misalign targets.

Comments

Richard Sandiford March 4, 2020, 6:53 p.m. UTC | #1
"Kewen.Lin" <linkw@linux.ibm.com> writes:
> Hi,
>
> As PR94023 shows, the expected SLP requires misaligned vector access
> support.  This patch is to guard the check under the target condition
> vect_hw_misalign to ensure that.
>
> Verified it on ppc64-redhat-linux (Power7 BE).
>
> Is it ok for trunk, and backport to GCC 9 after some burn-in time?

OK for both, thanks.

Richard

>
>
> BR,
> Kewen
> --------
>
> gcc/testsuite/ChangeLog
>
> 2020-03-04  Kewen Lin  <linkw@gcc.gnu.org>
>
> 	PR testsuite/94023
> 	* gcc.dg/vect/slp-perm-12.c: Expect loop vectorized messages only on
> 	vect_hw_misalign targets.
>
>
> diff --git a/gcc/testsuite/gcc.dg/vect/slp-perm-12.c b/gcc/testsuite/gcc.dg/vect/slp-perm-12.c
> index 4d4c534..113223a 100644
> --- a/gcc/testsuite/gcc.dg/vect/slp-perm-12.c
> +++ b/gcc/testsuite/gcc.dg/vect/slp-perm-12.c
> @@ -49,4 +49,4 @@ int main()
>    return 0;
>  }
>
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_perm } } } */
> +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_perm && vect_hw_misalign } } } } */
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/slp-perm-12.c b/gcc/testsuite/gcc.dg/vect/slp-perm-12.c
index 4d4c534..113223a 100644
--- a/gcc/testsuite/gcc.dg/vect/slp-perm-12.c
+++ b/gcc/testsuite/gcc.dg/vect/slp-perm-12.c
@@ -49,4 +49,4 @@  int main()
   return 0;
 }

-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_perm } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_perm && vect_hw_misalign } } } } */