1 # sh testcase for ldbank stbank resbank
3 # as(sh): -defsym sim_cpu=0
4 # as(shdsp): -defsym sim_cpu=1 -dsp
6 .include "testutils.inc"
8 .macro SEND reg bankno regno
9 set_greg
((\bankno
<< 7) + (\regno
<< 2)), \reg
156 assertreg
(19 << 2), r1
174 trapa
#13 ! magic trap, sets ibnr
239 set_sr_bit
(1 << 14) ! set BO
243 assert_sreg
555, macl
244 assert_sreg
554, mach