1# ARM simulator testsuite.
2
3if { [istarget arm*-*-*]
4     || [istarget thumb*-*-*] } {
5    # load support procs (none yet)
6    # load_lib cgen.exp
7
8    # all machines
9    set all_machs "arm7tdmi"
10
11    # The .cgs suffix is for "cgen .s".
12    foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] {
13	# If we're only testing specific files and this isn't one of them,
14	# skip it.
15	if ![runtest_file_p $runtests $src] {
16	    continue
17	}
18
19	run_sim_test $src $all_machs
20    }
21}
22