diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect-opt-info-1.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c | 11 |
3 files changed, 18 insertions, 11 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 53900981..7268692 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-01-04 Jakub Jelinek <jakub@redhat.com> + + * gcc.dg/vect-opt-info-1.c: Moved to ... + * gcc.dg/vect/nodump-vect-opt-info-1.c: ... here. Only run on + vect_int targets, use dg-additional-options instead of dg-options and + use relative line numbers instead of absolute. + 2018-01-03 Martin Sebor <msebor@redhat.com> PR tree-optimization/83655 diff --git a/gcc/testsuite/gcc.dg/vect-opt-info-1.c b/gcc/testsuite/gcc.dg/vect-opt-info-1.c deleted file mode 100644 index 913b013..0000000 --- a/gcc/testsuite/gcc.dg/vect-opt-info-1.c +++ /dev/null @@ -1,11 +0,0 @@ -/* { dg-options "-std=c99 -fopt-info -O3" } */ - -void -vadd (int *dst, int *op1, int *op2, int count) -{ - for (int i = 0; i < count; ++i) - dst[i] = op1[i] + op2[i]; -} - -/* { dg-message "loop vectorized" "" { target *-*-* } 6 } */ -/* { dg-message "loop versioned for vectorization because of possible aliasing" "" { target *-*-* } 6 } */ diff --git a/gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c b/gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c new file mode 100644 index 0000000..0b14b8e --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c @@ -0,0 +1,11 @@ +/* { dg-do compile { target vect_int } } */ +/* { dg-additional-options "-std=c99 -fopt-info -O3" } */ + +void +vadd (int *dst, int *op1, int *op2, int count) +{ +/* { dg-message "loop vectorized" "" { target *-*-* } .+2 } */ +/* { dg-message "loop versioned for vectorization because of possible aliasing" "" { target *-*-* } .+1 } */ + for (int i = 0; i < count; ++i) + dst[i] = op1[i] + op2[i]; +} |