public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: Fix gcc.dg/vect/bb-slp-39.c on IBM Z
@ 2021-04-20  8:17 Stefan Schulze Frielinghaus
  2021-04-20 23:07 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Schulze Frielinghaus @ 2021-04-20  8:17 UTC (permalink / raw)
  To: gcc-patches

On IBM Z the aliasing stores are realized through one element vector
instructions, if no cost model for vectorization is used which is the
default according to vect.exp.  Fixed by changing the number of times
the pattern must be found in the dump.

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/bb-slp-39.c: Change number of times the pattern
	must match for target IBM Z only.

Ok for mainline?

---
 gcc/testsuite/gcc.dg/vect/bb-slp-39.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-39.c b/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
index 255bb1095dc..ee596cfa08b 100644
--- a/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
+++ b/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
@@ -16,4 +16,5 @@ void foo (double *p)
 }
 
 /* See that we vectorize three SLP instances.  */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" { target { ! s390*-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 5 "slp2" { target {   s390*-*-* } } } } */
-- 
2.23.0


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

* Re: [PATCH] testsuite: Fix gcc.dg/vect/bb-slp-39.c on IBM Z
  2021-04-20  8:17 [PATCH] testsuite: Fix gcc.dg/vect/bb-slp-39.c on IBM Z Stefan Schulze Frielinghaus
@ 2021-04-20 23:07 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2021-04-20 23:07 UTC (permalink / raw)
  To: Stefan Schulze Frielinghaus, gcc-patches


On 4/20/2021 2:17 AM, Stefan Schulze Frielinghaus via Gcc-patches wrote:
> On IBM Z the aliasing stores are realized through one element vector
> instructions, if no cost model for vectorization is used which is the
> default according to vect.exp.  Fixed by changing the number of times
> the pattern must be found in the dump.
>
> gcc/testsuite/ChangeLog:
>
> 	* gcc.dg/vect/bb-slp-39.c: Change number of times the pattern
> 	must match for target IBM Z only.

OK

jeff


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

end of thread, other threads:[~2021-04-20 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20  8:17 [PATCH] testsuite: Fix gcc.dg/vect/bb-slp-39.c on IBM Z Stefan Schulze Frielinghaus
2021-04-20 23:07 ` Jeff Law

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