diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2011-04-21 09:39:41 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2011-04-21 09:39:41 +0000 |
commit | 5a2e560830dac0c29358248b5b489446c18e179e (patch) | |
tree | 800a9bae5980400c2254a7aa860b89ab1dc2a9c0 /gcc | |
parent | 4b18d6830938102b414a736f44203792056b6f69 (diff) | |
download | gcc-5a2e560830dac0c29358248b5b489446c18e179e.zip gcc-5a2e560830dac0c29358248b5b489446c18e179e.tar.gz gcc-5a2e560830dac0c29358248b5b489446c18e179e.tar.bz2 |
vect.exp: Run the main tests twice, one with -flto and once without.
gcc/testsuite/
* gcc.dg/vect/vect.exp: Run the main tests twice, one with -flto
and once without.
From-SVN: r172816
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect.exp | 23 |
2 files changed, 19 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 56cc38a..7cda82e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-04-21 Richard Sandiford <richard.sandiford@linaro.org> + + * gcc.dg/vect/vect.exp: Run the main tests twice, one with -flto + and once without. + 2011-04-21 Richard Earnshaw <rearnsha@arm.com> Richard Sandiford <richard.sandiford@linaro.org> diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index 4e93959..b783ec3 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -75,15 +75,20 @@ lappend DEFAULT_VECTCFLAGS "-fdump-tree-vect-details" lappend VECT_SLP_CFLAGS "-fdump-tree-slp-details" # Main loop. -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/pr*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vect-*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/slp-*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \ - "" $VECT_SLP_CFLAGS - +set VECT_ADDITIONAL_FLAGS [list ""] +if { [check_effective_target_lto] } { + lappend VECT_ADDITIONAL_FLAGS "-flto" +} +foreach flags $VECT_ADDITIONAL_FLAGS { + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/pr*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vect-*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/slp-*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \ + $flags $VECT_SLP_CFLAGS +} #### Tests with special options global SAVED_DEFAULT_VECTCFLAGS |