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