]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/arm/allinsn.exp
sim: testsuite: push $arch out to targets
[thirdparty/binutils-gdb.git] / sim / testsuite / arm / allinsn.exp
CommitLineData
49634642
NC
1# ARM simulator testsuite.
2
4d393d60 3if { [istarget arm*-*-*] } {
b0dcd7d8
MF
4 # Used to locate the `run` program.
5 global arch
6 set arch "arm"
49634642
NC
7
8 # all machines
9 set all_machs "xscale"
10
11 if [is_remote host] {
12 remote_download host $srcdir/$subdir/testutils.inc
13 }
14
15 # The .cgs suffix is for "cgen .s".
16 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] {
17 # If we're only testing specific files and this isn't one of them,
18 # skip it.
19 if ![runtest_file_p $runtests $src] {
20 continue
21 }
22
23 run_sim_test $src $all_machs
24 }
25
26 if [is_remote host] {
27 remote_file host delete testutils.inc
28 }
29}