OSDN Git Service

* gcc.dg/vect/vect.exp: Add new stanza for aligned-section-anchors-*
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 16:58:35 +0000 (16:58 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 16:58:35 +0000 (16:58 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150880 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/aligned-section-anchors-nest-1.c [moved from gcc/testsuite/gcc.dg/vect/section-anchors-nest-1.c with 76% similarity]
gcc/testsuite/gcc.dg/vect/vect.exp

index b5a07b1..f2583ec 100644 (file)
@@ -1,3 +1,11 @@
+2009-08-18  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * 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  <ubizjak@gmail.com>
 
        * g++.dg/cdce3.C: Add -mieee for alpha*-*-* targets.
@@ -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" } } */
index 149bf0f..54e7cb2 100644 (file)
@@ -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"