Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cldf.cgs
blob011a02a3e85089a4ac8c3d0e3c6dee972de9eaba
1 # frv testcase for cldf @($GRi,$GRj),$GRk,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cldf
9 cldf:
10         set_spr_immed   0x1b1b,cccr
12         set_mem_limmed  0xdead,0xbeef,sp
13         set_fr_iimmed   0xbeef,0xdead,fr8
15         set_gr_immed    0,gr7
16         cldf            @(sp,gr7),fr8,cc0,1
17         test_fr_limmed  0xdead,0xbeef,fr8
19         set_fr_iimmed   0xbeef,0xdead,fr8
20         inc_gr_immed    -4,sp
21         set_gr_immed    4,gr7
22         cldf            @(sp,gr7),fr8,cc0,1
23         test_fr_limmed  0xdead,0xbeef,fr8
25         set_fr_iimmed   0xbeef,0xdead,fr8
26         inc_gr_immed    8,sp
27         set_gr_immed    -4,gr7
28         cldf            @(sp,gr7),fr8,cc4,1
29         test_fr_limmed  0xdead,0xbeef,fr8
31         set_mem_limmed  0xdead,0xbeef,sp
32         set_fr_iimmed   0xbeef,0xdead,fr8
34         set_gr_immed    0,gr7
35         cldf            @(sp,gr7),fr8,cc0,0
36         test_fr_limmed  0xbeef,0xdead,fr8
38         set_fr_iimmed   0xbeef,0xdead,fr8
39         inc_gr_immed    -4,sp
40         set_gr_immed    4,gr7
41         cldf            @(sp,gr7),fr8,cc0,0
42         test_fr_limmed  0xbeef,0xdead,fr8
44         set_fr_iimmed   0xbeef,0xdead,fr8
45         inc_gr_immed    8,sp
46         set_gr_immed    -4,gr7
47         cldf            @(sp,gr7),fr8,cc4,0
48         test_fr_limmed  0xbeef,0xdead,fr8
50         set_mem_limmed  0xdead,0xbeef,sp
51         set_fr_iimmed   0xbeef,0xdead,fr8
53         set_gr_immed    0,gr7
54         cldf            @(sp,gr7),fr8,cc1,0
55         test_fr_limmed  0xdead,0xbeef,fr8
57         set_fr_iimmed   0xbeef,0xdead,fr8
58         inc_gr_immed    -4,sp
59         set_gr_immed    4,gr7
60         cldf            @(sp,gr7),fr8,cc1,0
61         test_fr_limmed  0xdead,0xbeef,fr8
63         set_fr_iimmed   0xbeef,0xdead,fr8
64         inc_gr_immed    8,sp
65         set_gr_immed    -4,gr7
66         cldf            @(sp,gr7),fr8,cc5,0
67         test_fr_limmed  0xdead,0xbeef,fr8
69         set_mem_limmed  0xdead,0xbeef,sp
70         set_fr_iimmed   0xbeef,0xdead,fr8
72         set_gr_immed    0,gr7
73         cldf            @(sp,gr7),fr8,cc1,1
74         test_fr_limmed  0xbeef,0xdead,fr8
76         set_fr_iimmed   0xbeef,0xdead,fr8
77         inc_gr_immed    -4,sp
78         set_gr_immed    4,gr7
79         cldf            @(sp,gr7),fr8,cc1,1
80         test_fr_limmed  0xbeef,0xdead,fr8
82         set_fr_iimmed   0xbeef,0xdead,fr8
83         inc_gr_immed    8,sp
84         set_gr_immed    -4,gr7
85         cldf            @(sp,gr7),fr8,cc5,1
86         test_fr_limmed  0xbeef,0xdead,fr8
88         set_mem_limmed  0xdead,0xbeef,sp
89         set_fr_iimmed   0xbeef,0xdead,fr8
91         set_gr_immed    0,gr7
92         cldf            @(sp,gr7),fr8,cc2,0
93         test_fr_limmed  0xbeef,0xdead,fr8
95         set_fr_iimmed   0xbeef,0xdead,fr8
96         inc_gr_immed    -4,sp
97         set_gr_immed    4,gr7
98         cldf            @(sp,gr7),fr8,cc2,1
99         test_fr_limmed  0xbeef,0xdead,fr8
101         set_fr_iimmed   0xbeef,0xdead,fr8
102         inc_gr_immed    8,sp
103         set_gr_immed    -4,gr7
104         cldf            @(sp,gr7),fr8,cc6,0
105         test_fr_limmed  0xbeef,0xdead,fr8
107         set_mem_limmed  0xdead,0xbeef,sp
108         set_fr_iimmed   0xbeef,0xdead,fr8
110         set_gr_immed    0,gr7
111         cldf            @(sp,gr7),fr8,cc3,1
112         test_fr_limmed  0xbeef,0xdead,fr8
114         set_fr_iimmed   0xbeef,0xdead,fr8
115         inc_gr_immed    -4,sp
116         set_gr_immed    4,gr7
117         cldf            @(sp,gr7),fr8,cc3,0
118         test_fr_limmed  0xbeef,0xdead,fr8
120         set_fr_iimmed   0xbeef,0xdead,fr8
121         inc_gr_immed    8,sp
122         set_gr_immed    -4,gr7
123         cldf            @(sp,gr7),fr8,cc7,1
124         test_fr_limmed  0xbeef,0xdead,fr8
126         pass