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