Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / xstormy16 / xstormy16.exp
blob7699a42edc531f6d59271e47615c930789ae284c
1 # Tests for the xstormy16
3 if {![istarget xstormy16-*-*]} {
4 return 0
7 load_lib gcc-dg.exp
9 # Initialize `dg'.
10 dg-init
12 # Assemble the below100.S file which contains
13 # support code for the rest of the tests.
14 set old-dg-do-what-default "${dg-do-what-default}"
15 set dg-do-what-default assemble
16 dg-test -keep-output "$srcdir/$subdir/below100.S" "" ""
17 set dg-do-what-default run
20 # Main loop.
21 foreach testcase [lsort [find $srcdir/$subdir *.c]] {
22 global test_counts
24 set base "[file rootname [file tail $testcase]]"
26 if ![runtest_file_p $runtests $testcase] {
27 continue
30 set fails_before $test_counts(FAIL,count)
31 dg-test $testcase "--save-temps -fno-inline-functions -L$srcdir/$subdir" ""
32 set fails_after $test_counts(FAIL,count)
34 if { $fails_before == $fails_after } {
35 catch "exec rm -f $base.i $base.s $base.o"
39 set dg-do-what-default "${old-dg-do-what-default}"
41 # All done.
42 dg-finish