binutils-gdb/sim/testsuite/sh/allinsn.exp
Mike Frysinger 024120b6ee sim: sh: simplify testsuite a bit
Switch from the centralized list in the exp file to each test declaring
its own requirements which they're already (mostly) doing.  This will
increase coverage slightly by running more tests in more configurations
since the hardcoded exp list was a little out of date.

We have to mark the psh* tests as shdsp only (to match what the exp
file was doing), mark the fsca & fsrra tests as failing (since they
weren't even being run by the exp file), and to fix the expected
output & status of the fail test.
2021-11-09 01:22:06 -05:00

20 lines
376 B
Plaintext

# sh tests
set all_machs "sh shdsp"
set global_as_options ""
set global_ld_options ""
foreach opt $board_variant_list {
switch "x$opt" {
x-ml { set global_as_options "-little --defsym LITTLE=1"
set global_ld_options "-EL" }
}
}
if [istarget sh-*elf] {
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
run_sim_test $src $all_machs
}
}