New sim testsuite for Fujitsu FRV. Contributed by Red Hat.
[external/binutils.git] / sim / testsuite / sim / frv / ckra.cgs
1 # frv testcase for ckra $CCj_int
2 # mach: all
3
4         .include "testutils.inc"
5
6         start
7
8         .global ckra
9 ckra:
10         set_spr_immed   0x1b1b,cccr
11         set_icc         0x0 0
12         ckra            cc7
13         test_spr_immed  0xdb1b,cccr
14
15         set_spr_immed   0x1b1b,cccr
16         set_icc         0x1 0
17         ckra            cc7
18         test_spr_immed  0xdb1b,cccr
19
20         set_spr_immed   0x1b1b,cccr
21         set_icc         0x2 0
22         ckra            cc7
23         test_spr_immed  0xdb1b,cccr
24
25         set_spr_immed   0x1b1b,cccr
26         set_icc         0x3 0
27         ckra            cc7
28         test_spr_immed  0xdb1b,cccr
29
30         set_spr_immed   0x1b1b,cccr
31         set_icc         0x4 0
32         ckra            cc7
33         test_spr_immed  0xdb1b,cccr
34
35         set_spr_immed   0x1b1b,cccr
36         set_icc         0x5 0
37         ckra            cc7
38         test_spr_immed  0xdb1b,cccr
39
40         set_spr_immed   0x1b1b,cccr
41         set_icc         0x6 0
42         ckra            cc7
43         test_spr_immed  0xdb1b,cccr
44
45         set_spr_immed   0x1b1b,cccr
46         set_icc         0x7 0
47         ckra            cc7
48         test_spr_immed  0xdb1b,cccr
49
50         set_spr_immed   0x1b1b,cccr
51         set_icc         0x8 0
52         ckra            cc7
53         test_spr_immed  0xdb1b,cccr
54
55         set_spr_immed   0x1b1b,cccr
56         set_icc         0x9 0
57         ckra            cc7
58         test_spr_immed  0xdb1b,cccr
59
60         set_spr_immed   0x1b1b,cccr
61         set_icc         0xa 0
62         ckra            cc7
63         test_spr_immed  0xdb1b,cccr
64
65         set_spr_immed   0x1b1b,cccr
66         set_icc         0xb 0
67         ckra            cc7
68         test_spr_immed  0xdb1b,cccr
69
70         set_spr_immed   0x1b1b,cccr
71         set_icc         0xc 0
72         ckra            cc7
73         test_spr_immed  0xdb1b,cccr
74
75         set_spr_immed   0x1b1b,cccr
76         set_icc         0xd 0
77         ckra            cc7
78         test_spr_immed  0xdb1b,cccr
79
80         set_spr_immed   0x1b1b,cccr
81         set_icc         0xe 0
82         ckra            cc7
83         test_spr_immed  0xdb1b,cccr
84
85         set_spr_immed   0x1b1b,cccr
86         set_icc         0xf 0
87         ckra            cc7
88         test_spr_immed  0xdb1b,cccr
89
90         pass