From 8fd962e39c8bf6a2506c684f48a19a41c4c5aa5f Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 18 Aug 2009 16:58:35 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 8 ++++++++ ...-anchors-nest-1.c => aligned-section-anchors-nest-1.c} | 3 +-- gcc/testsuite/gcc.dg/vect/vect.exp | 6 ++++++ 3 files changed, 15 insertions(+), 2 deletions(-) rename gcc/testsuite/gcc.dg/vect/{section-anchors-nest-1.c => aligned-section-anchors-nest-1.c} (76%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b5a07b19a171..f2583ec8929f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2009-08-18 Nathan Froyd + + * 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. + 2009-08-18 Uros Bizjak * g++.dg/cdce3.C: Add -mieee for alpha*-*-* targets. 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 similarity index 76% rename from gcc/testsuite/gcc.dg/vect/section-anchors-nest-1.c rename to gcc/testsuite/gcc.dg/vect/aligned-section-anchors-nest-1.c index 39a24ccaf222..670e45491c3f 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 #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 149bf0f5a313..54e7cb279683 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" -- 2.47.2