binutils-gdb/sim/testsuite/cris/hw/rv-n-cris/poll1.ms
Mike Frysinger 1368b914e9 sim: testsuite: flatten tree
Now that all port tests live under testsuite/sim/*/, and none live
in testsuite/ directly, flatten the structure by moving all of the
dirs under testsuite/sim/ to testsuite/ directly.

We need to stop passing --tool to dejagnu so that it searches all
dirs and not just ones that start with "sim".  Since we have no
other dirs in this tree, and no plans to add any, should be fine.
2021-01-15 19:18:34 -05:00

23 lines
358 B
Plaintext

#mach: crisv32
#sim(crisv32): --hw-device "/rv/dummy 0x12"
# A variant of trivial2.ms to check that the right thing happens when
# we reach the poll function with a dummy device.
.include "testutils.inc"
start
move.d 0xd0000000,$r0
move.d [$r0+],$r3
cmp.d 0x12121212,$r3
beq ok
nop
bad:
fail
ok:
move.d 0x10000,$r10
0:
bne 0b
subq 1,$r10
pass