1 # Blackfin testcase for branching out of the middle of a hardware loop
4 .include "testutils.inc"
6 .macro test_prep lc:req, sym:req
12 LSETUP (1f, 2f) LC0 = P0;
15 .macro test_check exp5:req, exp6:req, exp7:req, expLC
38 .macro test_jump_s lc:req
45 test_check 0, 0, 1, \lc
53 .macro test_jump_m lc:req
60 test_check 1, 0, 1, \lc
68 .macro test_jump_e lc:req, lcend:req
75 test_check 1, 1, 1, \lcend
83 .macro test_call_s lc:req, exp5:req, exp6:req, exp7:req
89 test_check \exp5, \exp6, \exp7, 0
91 test_call_s 0, 1, 1, 2
92 test_call_s 1, 1, 1, 2
93 test_call_s 2, 2, 2, 3
94 test_call_s 10, 10, 10, 11
97 .macro test_call_m lc:req, exp5:req, exp6:req, exp7:req
103 test_check \exp5, \exp6, \exp7, 0
105 test_call_m 0, 1, 1, 2
106 test_call_m 1, 1, 1, 2
107 test_call_m 2, 2, 2, 3
108 test_call_m 10, 10, 10, 11
111 .macro test_call_e lc:req, exp5:req, exp6:req, exp7:req
117 test_check \exp5, \exp6, \exp7, 0
119 test_call_e 0, 1, 1, 2
120 test_call_e 1, 1, 1, 2
121 test_call_e 2, 2, 2, 3
122 test_call_e 10, 10, 10, 11