mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
23cb7bac66
Since we require ports to use a matching subdir name in the testsuite tree, we can use that to calculate the $arch value.
36 lines
743 B
Plaintext
36 lines
743 B
Plaintext
# v850 simulator testsuite.
|
|
|
|
if [istarget v850*-*] {
|
|
global opt
|
|
|
|
# all machines
|
|
switch -regexp -- $opt {
|
|
.*v850e.* {
|
|
set all_machs "v850e"
|
|
}
|
|
default {
|
|
set all_machs "v850"
|
|
}
|
|
}
|
|
# gas doesn't support any '=' option for v850.
|
|
#set cpu_option -m
|
|
|
|
# The .cgs suffix is for "cgen .s".
|
|
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] {
|
|
# If we're only testing specific files and this isn't one of them,
|
|
# skip it.
|
|
if ![runtest_file_p $runtests $src] {
|
|
continue
|
|
}
|
|
run_sim_test $src $all_machs
|
|
}
|
|
}
|
|
|
|
#foreach var [lsort [info globals]] {
|
|
# if [array exists ::$var] {
|
|
# puts [format "%-27s %s" $var Array:]
|
|
# continue
|
|
# }
|
|
# puts [format "%-30s %s" $var "[set ::$var]"]
|
|
#}
|