public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-8075] rs6000/test: Adjust p9-vec-length-{full, epil}-7.c [PR103196]
@ 2022-04-11  2:52 Kewen Lin
  0 siblings, 0 replies; only message in thread
From: Kewen Lin @ 2022-04-11  2:52 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3ac111372ecb73cc2464ab27e3bad75dfe88a34b

commit r12-8075-g3ac111372ecb73cc2464ab27e3bad75dfe88a34b
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Sun Apr 10 21:50:44 2022 -0500

    rs6000/test: Adjust p9-vec-length-{full,epil}-7.c [PR103196]
    
    As PR103196 shows, complete unrolling pass still takes effect even
    if we have specified the option "-fno-unroll-loops".  The loops in
    that case are not expected to be transformed by it, otherwise the
    expected counts change.  This patch is to add the disabling option
    to make them not sensitive to complete unrolling.
    
            PR testsuite/103196
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/powerpc/p9-vec-length-epil-7.c: Add option
            -fdisable-tree-cunroll.
            * gcc.target/powerpc/p9-vec-length-full-7.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.target/powerpc/p9-vec-length-epil-7.c | 4 +++-
 gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-epil-7.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-epil-7.c
index a27ee347ca1..011b731f7c5 100644
--- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-epil-7.c
+++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-epil-7.c
@@ -1,5 +1,7 @@
 /* { dg-do compile { target { lp64 && powerpc_p9vector_ok } } } */
-/* { dg-options "-mdejagnu-cpu=power9 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -ffast-math" } */
+/* Pass cunroll isn't disabled by -fno-unroll-loops, so use explicit
+   disabling option for it.  */
+/* { dg-options "-mdejagnu-cpu=power9 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -ffast-math -fdisable-tree-cunroll" } */
 
 /* { dg-additional-options "--param=vect-partial-vector-usage=1" } */
 
diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c
index 89ff38443e7..e0e51d9a972 100644
--- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c
+++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c
@@ -1,5 +1,7 @@
 /* { dg-do compile { target { lp64 && powerpc_p9vector_ok } } } */
-/* { dg-options "-mdejagnu-cpu=power9 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -ffast-math" } */
+/* Pass cunroll isn't disabled by -fno-unroll-loops, so use explicit
+   disabling option for it.  */
+/* { dg-options "-mdejagnu-cpu=power9 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -ffast-math -fdisable-tree-cunroll" } */
 
 /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-11  2:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11  2:52 [gcc r12-8075] rs6000/test: Adjust p9-vec-length-{full, epil}-7.c [PR103196] Kewen Lin

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