1 # Blackfin testcase for having RETI set correctly
3 # sim: --environment operating
6 .include "testutils.inc"
8 # This test keeps P5 as the base of the EVT table
10 .macro set_evt lvl:req, sym:req
12 [P5 + 4 * \lvl\()] = R1;
17 # First mark all EVTs as fails (they shouldn't be activated)
22 LSETUP (1f, 1f) LC0 = P2;
25 # We'll bounce up a few
31 # Lower ourselves down so we can RAISE up
44 # Activate interrupt nesting early
47 # We activate the interrupt here ...
50 # ... but we should RETI here
58 # We activate the interrupt here ...
62 # ... but we should RETI here
70 # Activate interrupt nesting early
73 # We activate the interrupt here ...
78 # ... but we should RETI here
86 # Activate interrupt nesting early
89 # We activate the interrupt here ...
97 # ... but we should RETI here
98 # don't jump to fail_lvl as the pipeline might advance
99 # the PC to the fail_lvl point before the ivg actually
100 # gets a chance to fire
106 IF !CC JUMP fail_lvl;