xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cr16/misc.exp (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# Miscellaneous CR16 simulator testcases
2
3sim_init
4
5# all machines
6set all_machs "cr16"
7
8global SIMFLAGS_FOR_TARGET
9# The cr16 linker sets the default LMA base to 0, and all the code
10# expects the VMA when running, so use that when running the tests.
11set SIMFLAGS_FOR_TARGET "--load-vma"
12
13# The .ms suffix is for "miscellaneous .s".
14foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.ms]] {
15    # If we're only testing specific files and this isn't one of them, skip it.
16    if ![runtest_file_p $runtests $src] {
17	continue
18    }
19    run_sim_test $src $all_machs
20}
21