binutils-gdb/sim/testsuite/cris/hw/rv-n-cris/trivial4.ms
Mike Frysinger 927f25ebac sim: cris: replace @srcdir@ test extension with $srcdir/$subdir
The common framework supports $srcdir & $subdir replacements already,
so replace the custom @srcdir@ logic with those.  Since the replace
happens in slurp_options that cris already uses, we don't have any
logic to port over there.  We have to duplicate that into the cris
slurp_rv helper though.
2021-11-16 20:16:18 -05:00

23 lines
299 B
Plaintext

#mach: crisv32
#r @,$srcdir/$subdir/trivial4.r
# Test read and writes.
.include "testutils.inc"
start
move.d 0xd0000032,$r0
move.d [$r0+],$r3
cmp.d 0xabcdef01,$r3
beq ok
nop
bad:
fail
ok:
move.d 0xaabbccdd,$r3
move.d $r3,[$r0]
move.d [$r0],$r3
cmp.d 0x76543210,$r3
bne bad
nop
pass