aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2009-08-18 16:58:35 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2009-08-18 16:58:35 +0000
commit8fd962e39c8bf6a2506c684f48a19a41c4c5aa5f (patch)
tree00d9017b3c3427fe67483cabe7966e8820271484 /gcc/testsuite/gcc.dg/vect
parentf0962d64ac9a5d654f9d19a5ce6bfe00bf5b27c5 (diff)
downloadgcc-8fd962e39c8bf6a2506c684f48a19a41c4c5aa5f.zip
gcc-8fd962e39c8bf6a2506c684f48a19a41c4c5aa5f.tar.gz
gcc-8fd962e39c8bf6a2506c684f48a19a41c4c5aa5f.tar.bz2
vect.exp: Add new stanza for aligned-section-anchors-* tests.
* gcc.dg/vect/vect.exp: Add new stanza for aligned-section-anchors-* tests. * gcc.dg/vect/section-anchors-nest-1.c: Rename to... * gcc.dg/vect/aligned-section-anchors-nest-1.c: ...this. Remove dg-options. Fix dg-final clause. From-SVN: r150880
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect')
-rw-r--r--gcc/testsuite/gcc.dg/vect/aligned-section-anchors-nest-1.c (renamed from gcc/testsuite/gcc.dg/vect/section-anchors-nest-1.c)3
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect.exp6
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/section-anchors-nest-1.c b/gcc/testsuite/gcc.dg/vect/aligned-section-anchors-nest-1.c
index 39a24cc..670e454 100644
--- a/gcc/testsuite/gcc.dg/vect/section-anchors-nest-1.c
+++ b/gcc/testsuite/gcc.dg/vect/aligned-section-anchors-nest-1.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target section_anchors } */
/* { dg-require-effective-target vect_int } */
-/* { dg-options "-O2 -ftree-vectorize -fsection-anchors -fno-vect-cost-model -fdump-ipa-increase_alignment" } */
#include <stdarg.h>
#include "tree-vect.h"
@@ -32,4 +31,4 @@ int *foo(void)
}
/* { dg-final { scan-ipa-dump-times "Increasing alignment of decl" 3 "increase_alignment" } } */
-/* { dg -finalfoo { cleanup-ipa-dump "increase_alignment" } } */
+/* { dg-final { cleanup-ipa-dump "increase_alignment" } } */
diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp
index 149bf0f..54e7cb2 100644
--- a/gcc/testsuite/gcc.dg/vect/vect.exp
+++ b/gcc/testsuite/gcc.dg/vect/vect.exp
@@ -190,6 +190,12 @@ lappend DEFAULT_VECTCFLAGS "-fsection-anchors"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/section-anchors-*.\[cS\]]] \
"" $DEFAULT_VECTCFLAGS
+# alignment-sensitive -fsection-anchors tests
+set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
+lappend DEFAULT_VECTCFLAGS "-fsection-anchors -fdump-ipa-increase_alignment"
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/aligned-section-anchors-*.\[cS\]]] \
+ "" $DEFAULT_VECTCFLAGS
+
# -fno-section-anchors tests
set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
lappend DEFAULT_VECTCFLAGS "-fno-section-anchors"