Commit 8fd962e3 by Nathan Froyd Committed by Nathan Froyd

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
parent f0962d64
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> 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/cdce3.C: Add -mieee for alpha*-*-* targets. * g++.dg/cdce3.C: Add -mieee for alpha*-*-* targets.
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target section_anchors } */ /* { dg-require-effective-target section_anchors } */
/* { dg-require-effective-target vect_int } */ /* { 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 <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
...@@ -32,4 +31,4 @@ int *foo(void) ...@@ -32,4 +31,4 @@ int *foo(void)
} }
/* { dg-final { scan-ipa-dump-times "Increasing alignment of decl" 3 "increase_alignment" } } */ /* { 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" } } */
...@@ -190,6 +190,12 @@ lappend DEFAULT_VECTCFLAGS "-fsection-anchors" ...@@ -190,6 +190,12 @@ lappend DEFAULT_VECTCFLAGS "-fsection-anchors"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/section-anchors-*.\[cS\]]] \ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/section-anchors-*.\[cS\]]] \
"" $DEFAULT_VECTCFLAGS "" $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 # -fno-section-anchors tests
set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
lappend DEFAULT_VECTCFLAGS "-fno-section-anchors" lappend DEFAULT_VECTCFLAGS "-fno-section-anchors"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment