mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
b42f20d2ac
We'll rely on the toolchain probing to determine whether each arch's tests can be run rather the current configure target. This allows testing all of the ports in a multitarget configuration. For now, we don't reformat the files entirely to make it easier to review, and in case we need to make adjustments. Once this feels like it's stable, we can flatten the code a bit by removing the if statement entirely.
25 lines
633 B
Plaintext
25 lines
633 B
Plaintext
# v850 simulator testsuite.
|
|
|
|
sim_init
|
|
|
|
if [istarget *] {
|
|
# All machines.
|
|
# Should add more cpus if the testsuite adds coverage for their insns, but
|
|
# at the core level, there's no deviation beyond these two.
|
|
set all_machs "v850e v850"
|
|
|
|
# gas doesn't support any '=' option for v850.
|
|
set cpu_option_sep ""
|
|
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
|
|
}
|
|
}
|