xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cr16/allinsn.exp (revision 32d1c65c71fbdb65a012e8392a62a757dd6853e9)
1# CR16 simulator testsuite.
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 .cgs suffix is for "cgen .s".
14foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] {
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