From: Jakub Jelinek Date: Wed, 10 Sep 2014 20:02:00 +0000 (+0200) Subject: i386.exp: Only run vect-args.c tests if runtest_file_p says they should be run. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bee00c3739a093dff3108bf55663fc6b50274b4;p=gcc.git i386.exp: Only run vect-args.c tests if runtest_file_p says they should be run. * gcc.target/i386/i386.exp: Only run vect-args.c tests if runtest_file_p says they should be run. From-SVN: r215135 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0061c2c9692..c9dfcb1d9c8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-10 Jakub Jelinek + + * gcc.target/i386/i386.exp: Only run vect-args.c tests + if runtest_file_p says they should be run. + 2014-09-10 Alan Lawrence * gcc.target/aarch64/vstN_1.c: New test. diff --git a/gcc/testsuite/gcc.target/i386/i386.exp b/gcc/testsuite/gcc.target/i386/i386.exp index c753a2b6658..91ff1cb1976 100644 --- a/gcc/testsuite/gcc.target/i386/i386.exp +++ b/gcc/testsuite/gcc.target/i386/i386.exp @@ -316,13 +316,16 @@ if ![info exists DEFAULT_CFLAGS] then { dg-init clearcap-init +global runtests # Special case compilation of vect-args.c so we don't have to # replicate it 10 times. -foreach type { "" -mmmx -m3dnow -msse -msse2 } { - foreach level { "" -O } { - set flags "$type $level" - verbose -log "Testing vect-args, $flags" 1 - dg-test $srcdir/$subdir/vect-args.c $flags "" +if [runtest_file_p $runtests $srcdir/$subdir/vect-args.c] { + foreach type { "" -mmmx -m3dnow -msse -msse2 } { + foreach level { "" -O } { + set flags "$type $level" + verbose -log "Testing vect-args, $flags" 1 + dg-test $srcdir/$subdir/vect-args.c $flags "" + } } }