old-cross-binutils/sim/testsuite/v850eq-elf/t-ldsr.s

14 lines
171 B
ArmAsm
Raw Normal View History

1997-09-16 07:01:57 +00:00
.include "t-macros.i"
start
# check that a ldsr/stsr instruction clears reserved bits
mov -1, r1
ldsr r1, psw
stsr psw, r2
sub r1, r2
be bad
exit0
bad:
exit47