binutils-gdb/sim/testsuite/sh
Mike Frysinger c0d6a6e582 sim: testsuite: rework sim_init usage
The sim_init function was called by runtest for each test when --tool
was set to sim.  When we changed to --tool '' to collapse the testsuite
dir, the init function was no longer called on every test.  However, it
was still being called explicitly by config/default.exp.  It's not clear
why that explicit call ever existed since, in the past, it meant it was
redundant.

Lets drop the single sim_init call in config/default.exp and move it out
to all our tests.  This replicates the runtest behavior so we can setup
variables on a per-test basis which allows us to recollapse the sim_path
logic back.  We'll also leverage this in the future for toolchain setup.

Also add a few comments clarifying the overall runtime behavior.
2021-11-26 19:48:05 -05:00
..
add.s
allinsn.exp sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
and.s
bandor.s
bandornot.s
bclr.s
bld.s
bldnot.s
bset.s
bst.s
bxor.s
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
clip.s
div.s
dmxy.s
fabs.s
fadd.s
fail.s sim: sh: simplify testsuite a bit 2021-11-09 01:22:06 -05:00
fcmpeq.s
fcmpgt.s
fcnvds.s
fcnvsd.s
fdiv.s
fipr.s
fldi0.s
fldi1.s
flds.s
float.s
fmac.s
fmov.s
fmul.s
fneg.s
fpchg.s
frchg.s
fsca.s sim: sh: simplify testsuite a bit 2021-11-09 01:22:06 -05:00
fschg.s
fsqrt.s
fsrra.s sim: sh: simplify testsuite a bit 2021-11-09 01:22:06 -05:00
fsub.s
ftrc.s
ldrc.s
loop.s
macl.s
macw.s
mov.s
movi.s
movli.s
movua.s
movxy.s
mulr.s
pabs.s
padd.s
paddc.s
pand.s
pass.s
pclr.s
pdec.s
pdmsb.s
pinc.s
pmuls.s
prnd.s
pshai.s sim: sh: simplify testsuite a bit 2021-11-09 01:22:06 -05:00
pshar.s sim: sh: simplify testsuite a bit 2021-11-09 01:22:06 -05:00
pshli.s sim: sh: simplify testsuite a bit 2021-11-09 01:22:06 -05:00
pshlr.s sim: sh: simplify testsuite a bit 2021-11-09 01:22:06 -05:00
psub.s
pswap.s
pushpop.s
resbank.s
sett.s
shll2.s
shll8.s
shll16.s
shll.s
shlr2.s
shlr8.s
shlr16.s
shlr.s
swap.s
testutils.inc