diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2012-09-20 11:37:05 +0200 |
---|---|---|
committer | Marc Glisse <glisse@gcc.gnu.org> | 2012-09-20 09:37:05 +0000 |
commit | 9606465f8cb5e4b79c8467d6b5d410abcb4eca62 (patch) | |
tree | 8fcea195db01bf2126539b8486160a62181bb069 | |
parent | a77fa1fcceb8b0e07caffebba58c50d6db31b636 (diff) | |
download | gcc-9606465f8cb5e4b79c8467d6b5d410abcb4eca62.zip gcc-9606465f8cb5e4b79c8467d6b5d410abcb4eca62.tar.gz gcc-9606465f8cb5e4b79c8467d6b5d410abcb4eca62.tar.bz2 |
forwprop-19.c: Check in forwprop1.
2012-09-20 Marc Glisse <marc.glisse@inria.fr>
* gcc.dg/tree-ssa/forwprop-19.c: Check in forwprop1.
* gcc.dg/tree-ssa/forwprop-20.c: Check in forwprop1.
* gcc.dg/tree-ssa/forwprop-21.c: Check in copyprop1.
* gcc.dg/tree-ssa/forwprop-22.c: Check in copyprop1.
From-SVN: r191560
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/forwprop-20.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/forwprop-21.c | 9 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/forwprop-22.c | 10 |
5 files changed, 25 insertions, 13 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 09c1d3f..8283c8e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-09-20 Marc Glisse <marc.glisse@inria.fr> + + * gcc.dg/tree-ssa/forwprop-19.c: Check in forwprop1. + * gcc.dg/tree-ssa/forwprop-20.c: Check in forwprop1. + * gcc.dg/tree-ssa/forwprop-21.c: Check in copyprop1. + * gcc.dg/tree-ssa/forwprop-22.c: Check in copyprop1. + 2012-09-19 Marc Glisse <marc.glisse@inria.fr> PR c++/54581 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c index 6d25c1b..f309e3c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-forwprop2" } */ +/* { dg-options "-O -fdump-tree-forwprop1" } */ typedef int vec __attribute__((vector_size (4 * sizeof (int)))); void f (vec *x1, vec *x2) @@ -11,5 +11,5 @@ void f (vec *x1, vec *x2) *x1 = z; } -/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop2" } } */ -/* { dg-final { cleanup-tree-dump "forwprop2" } } */ +/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop1" } } */ +/* { dg-final { cleanup-tree-dump "forwprop1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-20.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-20.c index 5b0e8ee..b1daa91 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-20.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-20.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target double64 } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-options "-O -fdump-tree-forwprop1" } */ #include <stdint.h> @@ -66,5 +66,5 @@ void l (double d, vecf* r) *r = __builtin_shuffle (x, y, m); // { d, -d } } -/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */ -/* { dg-final { cleanup-tree-dump "optimized" } } */ +/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop1" } } */ +/* { dg-final { cleanup-tree-dump "forwprop1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-21.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-21.c index 4859fa8..d92b9b3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-21.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-21.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-optimized" } */ +/* { dg-options "-O -fdump-tree-copyprop1" } */ typedef int v4si __attribute__ ((vector_size (4 * sizeof(int)))); int @@ -9,5 +9,8 @@ test (v4si *x, v4si *y) v4si z = __builtin_shuffle (*x, *y, m); return z[2]; } -/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */ -/* { dg-final { cleanup-tree-dump "optimized" } } */ + +/* Optimization in forwprop1, cleanup in copyprop1. */ + +/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "copyprop1" } } */ +/* { dg-final { cleanup-tree-dump "copyprop1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-22.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-22.c index 9c66c99..60c344d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-22.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-22.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_double } */ /* { dg-require-effective-target vect_perm } */ -/* { dg-options "-O -fdump-tree-optimized" } */ +/* { dg-options "-O -fdump-tree-copyprop1" } */ typedef double vec __attribute__((vector_size (2 * sizeof (double)))); void f (vec *px, vec *y, vec *z) @@ -13,6 +13,8 @@ void f (vec *px, vec *y, vec *z) *z = t2; } -/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "optimized" } } */ -/* { dg-final { scan-tree-dump-not "BIT_FIELD_REF" "optimized" } } */ -/* { dg-final { cleanup-tree-dump "optimized" } } */ +/* Optimization in forwprop1, cleanup in copyprop1. */ + +/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "copyprop1" } } */ +/* { dg-final { scan-tree-dump-not "BIT_FIELD_REF" "copyprop1" } } */ +/* { dg-final { cleanup-tree-dump "copyprop1" } } */ |