]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/frv/interrupts.exp
sim: testsuite: push $arch out to targets
[thirdparty/binutils-gdb.git] / sim / testsuite / frv / interrupts.exp
CommitLineData
4a306116
DB
1# FRV simulator testsuite.
2
3if [istarget frv*-*] {
b0dcd7d8
MF
4 # Used to locate the `run` program.
5 global arch
6 set arch "frv"
7
4a306116 8 # all machines
086419a8 9 set all_machs "frv fr500 fr550 fr400"
4a306116
DB
10 set cpu_option -mcpu
11
12 # The .cgs suffix is for "cgen .s".
13 foreach src [lsort [glob -nocomplain $srcdir/$subdir/interrupts/*.cgs]] {
14 # If we're only testing specific files and this isn't one of them,
15 # skip it.
16 if ![runtest_file_p $runtests $src] {
17 continue
18 }
19 run_sim_test $src $all_machs
20 }
21}