From 7bee00c3739a093dff3108bf55663fc6b50274b4 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 10 Sep 2014 22:02:00 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/i386.exp | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) 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 "" + } } } -- 2.30.2