mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 06:40:25 +08:00
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
This commit is contained in:
parent
4b18d68309
commit
5a2e560830
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user