From 517d489618b115219cdf8e2dc83085176a55eb7b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 4 Jan 2018 09:51:09 +0100 Subject: [PATCH] vect-opt-info-1.c: Moved to ... * 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. From-SVN: r256225 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.dg/vect-opt-info-1.c | 11 ----------- gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c | 11 +++++++++++ 3 files changed, 18 insertions(+), 11 deletions(-) delete mode 100644 gcc/testsuite/gcc.dg/vect-opt-info-1.c create mode 100644 gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 53900981ded..726869267f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-01-04 Jakub Jelinek + + * 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 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 913b0138085..00000000000 --- 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 00000000000..0b14b8eac13 --- /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]; +} -- 2.30.2