aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/v850/allinsns.exp
blob: 4c3bc088ff6b31ff36232b64d9408b35f1bef65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# v850 simulator testsuite.

if [istarget v850*-*] {
    global opt

    # Used to locate the `run` program.
    global arch
    set arch "v850"

    # 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]"]
#}