Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / bnelr.cgs
blob7a477b844e628c1d4b41b6272c5edf6c381f1d51
1 # frv testcase for bnelr $ICCi,$hint
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global bnelr
9 bnelr:
10         set_spr_addr    ok1,lr
11         set_icc         0x0 0
12         bnelr           icc0,0
13         fail
14 ok1:
15         set_spr_addr    ok2,lr
16         set_icc         0x1 1
17         bnelr           icc1,1
18         fail
19 ok2:
20         set_spr_addr    ok3,lr
21         set_icc         0x2 2
22         bnelr           icc2,2
23         fail
24 ok3:
25         set_spr_addr    ok4,lr
26         set_icc         0x3 3
27         bnelr           icc3,3
28         fail
29 ok4:
30         set_spr_addr    bad,lr
31         set_icc         0x4 0
32         bnelr           icc0,0
34         set_spr_addr    bad,lr
35         set_icc         0x5 1
36         bnelr           icc1,1
38         set_spr_addr    bad,lr
39         set_icc         0x6 2
40         bnelr           icc2,2
42         set_spr_addr    bad,lr
43         set_icc         0x7 3
44         bnelr           icc3,3
46         set_spr_addr    ok9,lr
47         set_icc         0x8 0
48         bnelr           icc0,0
49         fail
50 ok9:
51         set_spr_addr    oka,lr
52         set_icc         0x9 1
53         bnelr           icc1,1
54         fail
55 oka:
56         set_spr_addr    okb,lr
57         set_icc         0xa 2
58         bnelr           icc2,2
59         fail
60 okb:
61         set_spr_addr    okc,lr
62         set_icc         0xb 3
63         bnelr           icc3,3
64         fail
65 okc:
66         set_spr_addr    bad,lr
67         set_icc         0xc 0
68         bnelr           icc0,0
70         set_spr_addr    bad,lr
71         set_icc         0xd 1
72         bnelr           icc1,1
74         set_spr_addr    bad,lr
75         set_icc         0xe 2
76         bnelr           icc2,2
78         set_spr_addr    bad,lr
79         set_icc         0xf 3
80         bnelr           icc3,3
82         pass
83 bad:
84         fail