1 # Blackfin testcase for branching into the middle of a hardware loop
4 .include "testutils.inc"
6 .macro test_prep lc:req
14 .macro test_check exp5:req, exp6:req, exp7:req, expLC:req
34 .macro test_rts entry:req, lc:req, exp5:req, exp6:req, exp7:req, expLC:req
39 test_check \exp5
, \exp6
, \exp7
, \expLC
42 .macro test_jump entry:req, lc:req, exp5:req, exp6:req, exp7:req, expLC:req
46 test_check \exp5
, \exp6
, \exp7
, \expLC
56 test_rts hws
, 0, 1, 1, 1, 0
57 test_rts hws
, 1, 1, 1, 1, 0
58 test_rts hws
, 2, 2, 2, 2, 0
59 test_rts hws
, 20, 20, 20, 20, 0
61 test_rts hwm
, 0, 0, 1, 1, 0
62 test_rts hwm
, 1, 0, 1, 1, 0
63 test_rts hwm
, 2, 1, 2, 2, 0
64 test_rts hwm
, 20, 19, 20, 20, 0
66 test_rts hwe
, 0, 0, 0, 1, 0
67 test_rts hwe
, 1, 0, 0, 1, 0
68 test_rts hwe
, 2, 1, 1, 2, 0
69 test_rts hwe
, 20, 19, 19, 20, 0
71 test_rts hwp
, 0, 0, 0, 0, 0
72 test_rts hwp
, 1, 0, 0, 0, 1
73 test_rts hwp
, 2, 0, 0, 0, 2
75 test_jump hws
, 0, 1, 1, 1, 0
76 test_jump hws
, 1, 1, 1, 1, 0
77 test_jump hws
, 2, 2, 2, 2, 0
78 test_jump hws
, 20, 20, 20, 20, 0
80 test_jump hwm
, 0, 0, 1, 1, 0
81 test_jump hwm
, 1, 0, 1, 1, 0
82 test_jump hwm
, 2, 1, 2, 2, 0
83 test_jump hwm
, 20, 19, 20, 20, 0
85 test_jump hwe
, 0, 0, 0, 1, 0
86 test_jump hwe
, 1, 0, 0, 1, 0
87 test_jump hwe
, 2, 1, 1, 2, 0
88 test_jump hwe
, 20, 19, 19, 20, 0
90 test_jump hwp
, 0, 0, 0, 0, 0
91 test_jump hwp
, 1, 0, 0, 0, 1
92 test_jump hwp
, 2, 0, 0, 0, 2