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