diff mbox series

testsuite: Fix unroll-and-jam.c on IBM Z

Message ID 20210415120125.1819279-1-stefansf@linux.ibm.com
State New
Headers show
Series testsuite: Fix unroll-and-jam.c on IBM Z | expand

Commit Message

Stefan Schulze Frielinghaus April 15, 2021, 12:01 p.m. UTC
For z10 and newer inner loops are completely unrolled which leaves no
inner loops to jam which renders this testcase to fail.  Reverting
max-completely-peel-times to the default value fixes this testcase.

gcc/testsuite/ChangeLog:

	* gcc.dg/unroll-and-jam.c: Revert max-completely-peel-times to
	the default value on IBM Z.

Ok for mainline?

---
 gcc/testsuite/gcc.dg/unroll-and-jam.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Biener April 15, 2021, 2:10 p.m. UTC | #1
On Thu, Apr 15, 2021 at 2:51 PM Stefan Schulze Frielinghaus via
Gcc-patches <gcc-patches@gcc.gnu.org> wrote:
>
> For z10 and newer inner loops are completely unrolled which leaves no
> inner loops to jam which renders this testcase to fail.  Reverting
> max-completely-peel-times to the default value fixes this testcase.
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.dg/unroll-and-jam.c: Revert max-completely-peel-times to
>         the default value on IBM Z.
>
> Ok for mainline?

OK.

> ---
>  gcc/testsuite/gcc.dg/unroll-and-jam.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gcc/testsuite/gcc.dg/unroll-and-jam.c b/gcc/testsuite/gcc.dg/unroll-and-jam.c
> index 7eb64217a05..b8f4f16dc74 100644
> --- a/gcc/testsuite/gcc.dg/unroll-and-jam.c
> +++ b/gcc/testsuite/gcc.dg/unroll-and-jam.c
> @@ -1,5 +1,6 @@
>  /* { dg-do run } */
>  /* { dg-options "-O3 -floop-unroll-and-jam -fno-tree-loop-im --param unroll-jam-min-percent=0 -fdump-tree-unrolljam-details" } */
> +/* { dg-additional-options "--param max-completely-peel-times=16" { target { s390*-*-* } } } */
>  /* { dg-require-effective-target int32plus } */
>
>  #include <stdio.h>
> --
> 2.23.0
>
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/unroll-and-jam.c b/gcc/testsuite/gcc.dg/unroll-and-jam.c
index 7eb64217a05..b8f4f16dc74 100644
--- a/gcc/testsuite/gcc.dg/unroll-and-jam.c
+++ b/gcc/testsuite/gcc.dg/unroll-and-jam.c
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-O3 -floop-unroll-and-jam -fno-tree-loop-im --param unroll-jam-min-percent=0 -fdump-tree-unrolljam-details" } */
+/* { dg-additional-options "--param max-completely-peel-times=16" { target { s390*-*-* } } } */
 /* { dg-require-effective-target int32plus } */
 
 #include <stdio.h>