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