]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/riscv/allinsn.exp
sim: testsuite: push $arch out to targets
[thirdparty/binutils-gdb.git] / sim / testsuite / riscv / allinsn.exp
CommitLineData
b9249c46
MF
1# RISC-V simulator testsuite.
2
3if [istarget riscv*-*] {
b0dcd7d8
MF
4 # Used to locate the `run` program.
5 global arch
6 set arch "riscv"
7
b9249c46
MF
8 # all machines
9 set all_machs "riscv"
10
11 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
12 # If we're only testing specific files and this isn't one of them,
13 # skip it.
14 if ![runtest_file_p $runtests $src] {
15 continue
16 }
17 run_sim_test $src $all_machs
18 }
19}