1 # Analog Devices Blackfin simulator testsuite
3 if [istarget bfin-*-elf] {
7 # See if we have a preprocessor available.
8 if { [target_compile $srcdir/$subdir/usp.S compilercheck.x "preprocess" \
9 [list "incdir=$srcdir/$subdir"]] == "" } {
12 verbose -log "Can't execute preprocessor"
16 # See if we have a compiler available.
17 if { [target_compile $srcdir/$subdir/argc.c compilercheck.x "executable" \
18 [list "incdir=$srcdir/$subdir" "additional_flags=-msim"]] == "" } {
21 verbose -log "Can't execute C compiler"
25 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.\[csS\]]] {
26 # If we don't have a compiler available, skip tests :(.
27 if { $has_cpp == 0 && [string match "*.S" $src] } {
31 if { $has_cc == 0 && [string match "*.c" $src] } {
36 # If we're only testing specific files and this isn't one of them,
38 if ![runtest_file_p $runtests $src] {
41 run_sim_test $src $all_machs