Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cstdf.cgs
blobfabbe93f3b6103f73477be81cb124ebc52c96d17
1 # frv testcase for cstdf $GRk,@($GRi,$GRj),$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cstdf
9 cstdf:
10         set_spr_immed   0x1b1b,cccr
11         set_gr_gr       sp,gr20
13         set_mem_limmed  0xbeef,0xdead,sp
14         inc_gr_immed    -4,sp
15         set_mem_limmed  0xdead,0xbeef,sp
16         set_gr_gr       sp,gr21
18         set_gr_immed    0,gr7
19         set_fr_iimmed   0xbeef,0xdead,fr8
20         set_fr_iimmed   0xdead,0xbeef,fr9
21         cstdf           fr8,@(sp,gr7),cc0,1
22         set_gr_gr       gr21,gr22
23         test_mem_limmed 0xbeef,0xdead,gr22
24         inc_gr_immed    4,gr22
25         test_mem_limmed 0xdead,0xbeef,gr22
27         inc_gr_immed    -8,sp
28         set_gr_immed    8,gr7
29         set_fr_iimmed   0xaaaa,0xaaaa,fr8
30         set_fr_iimmed   0xbbbb,0xbbbb,fr9
31         cstdf           fr8,@(sp,gr7),cc0,1
32         set_gr_gr       gr21,gr22
33         test_mem_limmed 0xaaaa,0xaaaa,gr22
34         inc_gr_immed    4,gr22
35         test_mem_limmed 0xbbbb,0xbbbb,gr22
37         inc_gr_immed    16,sp
38         set_gr_immed    -8,gr7
39         set_fr_iimmed   0xcccc,0xcccc,fr8
40         set_fr_iimmed   0xdddd,0xdddd,fr9
41         cstdf           fr8,@(sp,gr7),cc4,1
42         set_gr_gr       gr21,gr22
43         test_mem_limmed 0xcccc,0xcccc,gr22
44         inc_gr_immed    4,gr22
45         test_mem_limmed 0xdddd,0xdddd,gr22
47         set_gr_gr       gr20,sp
48         set_mem_limmed  0xbeef,0xdead,sp
49         inc_gr_immed    -4,sp
50         set_mem_limmed  0xdead,0xbeef,sp
51         set_gr_gr       sp,gr21
53         set_gr_immed    0,gr7
54         set_fr_iimmed   0xbeef,0xdead,fr8
55         set_fr_iimmed   0xdead,0xbeef,fr9
56         cstdf           fr8,@(sp,gr7),cc0,0
57         set_gr_gr       gr21,gr22
58         test_mem_limmed 0xdead,0xbeef,gr22
59         inc_gr_immed    4,gr22
60         test_mem_limmed 0xbeef,0xdead,gr22
62         inc_gr_immed    -8,sp
63         set_gr_immed    8,gr7
64         set_fr_iimmed   0xaaaa,0xaaaa,fr8
65         set_fr_iimmed   0xbbbb,0xbbbb,fr9
66         cstdf           fr8,@(sp,gr7),cc0,0
67         set_gr_gr       gr21,gr22
68         test_mem_limmed 0xdead,0xbeef,gr22
69         inc_gr_immed    4,gr22
70         test_mem_limmed 0xbeef,0xdead,gr22
72         inc_gr_immed    16,sp
73         set_gr_immed    -8,gr7
74         set_fr_iimmed   0xcccc,0xcccc,fr8
75         set_fr_iimmed   0xdddd,0xdddd,fr9
76         cstdf           fr8,@(sp,gr7),cc4,0
77         set_gr_gr       gr21,gr22
78         test_mem_limmed 0xdead,0xbeef,gr22
79         inc_gr_immed    4,gr22
80         test_mem_limmed 0xbeef,0xdead,gr22
82         set_gr_gr       gr20,sp
83         set_mem_limmed  0xbeef,0xdead,sp
84         inc_gr_immed    -4,sp
85         set_mem_limmed  0xdead,0xbeef,sp
86         set_gr_gr       sp,gr21
88         set_gr_immed    0,gr7
89         set_fr_iimmed   0xbeef,0xdead,fr8
90         set_fr_iimmed   0xdead,0xbeef,fr9
91         cstdf           fr8,@(sp,gr7),cc1,0
92         set_gr_gr       gr21,gr22
93         test_mem_limmed 0xbeef,0xdead,gr22
94         inc_gr_immed    4,gr22
95         test_mem_limmed 0xdead,0xbeef,gr22
97         inc_gr_immed    -8,sp
98         set_gr_immed    8,gr7
99         set_fr_iimmed   0xaaaa,0xaaaa,fr8
100         set_fr_iimmed   0xbbbb,0xbbbb,fr9
101         cstdf           fr8,@(sp,gr7),cc1,0
102         set_gr_gr       gr21,gr22
103         test_mem_limmed 0xaaaa,0xaaaa,gr22
104         inc_gr_immed    4,gr22
105         test_mem_limmed 0xbbbb,0xbbbb,gr22
107         inc_gr_immed    16,sp
108         set_gr_immed    -8,gr7
109         set_fr_iimmed   0xcccc,0xcccc,fr8
110         set_fr_iimmed   0xdddd,0xdddd,fr9
111         cstdf           fr8,@(sp,gr7),cc5,0
112         set_gr_gr       gr21,gr22
113         test_mem_limmed 0xcccc,0xcccc,gr22
114         inc_gr_immed    4,gr22
115         test_mem_limmed 0xdddd,0xdddd,gr22
117         set_gr_gr       gr20,sp
118         set_mem_limmed  0xbeef,0xdead,sp
119         inc_gr_immed    -4,sp
120         set_mem_limmed  0xdead,0xbeef,sp
121         set_gr_gr       sp,gr21
123         set_gr_immed    0,gr7
124         set_fr_iimmed   0xbeef,0xdead,fr8
125         set_fr_iimmed   0xdead,0xbeef,fr9
126         cstdf           fr8,@(sp,gr7),cc1,1
127         set_gr_gr       gr21,gr22
128         test_mem_limmed 0xdead,0xbeef,gr22
129         inc_gr_immed    4,gr22
130         test_mem_limmed 0xbeef,0xdead,gr22
132         inc_gr_immed    -8,sp
133         set_gr_immed    8,gr7
134         set_fr_iimmed   0xaaaa,0xaaaa,fr8
135         set_fr_iimmed   0xbbbb,0xbbbb,fr9
136         cstdf           fr8,@(sp,gr7),cc1,1
137         set_gr_gr       gr21,gr22
138         test_mem_limmed 0xdead,0xbeef,gr22
139         inc_gr_immed    4,gr22
140         test_mem_limmed 0xbeef,0xdead,gr22
142         inc_gr_immed    16,sp
143         set_gr_immed    -8,gr7
144         set_fr_iimmed   0xcccc,0xcccc,fr8
145         set_fr_iimmed   0xdddd,0xdddd,fr9
146         cstdf           fr8,@(sp,gr7),cc5,1
147         set_gr_gr       gr21,gr22
148         test_mem_limmed 0xdead,0xbeef,gr22
149         inc_gr_immed    4,gr22
150         test_mem_limmed 0xbeef,0xdead,gr22
152         set_gr_gr       gr20,sp
153         set_mem_limmed  0xbeef,0xdead,sp
154         inc_gr_immed    -4,sp
155         set_mem_limmed  0xdead,0xbeef,sp
156         set_gr_gr       sp,gr21
158         set_gr_immed    0,gr7
159         set_fr_iimmed   0xbeef,0xdead,fr8
160         set_fr_iimmed   0xdead,0xbeef,fr9
161         cstdf           fr8,@(sp,gr7),cc2,0
162         set_gr_gr       gr21,gr22
163         test_mem_limmed 0xdead,0xbeef,gr22
164         inc_gr_immed    4,gr22
165         test_mem_limmed 0xbeef,0xdead,gr22
167         inc_gr_immed    -8,sp
168         set_gr_immed    8,gr7
169         set_fr_iimmed   0xaaaa,0xaaaa,fr8
170         set_fr_iimmed   0xbbbb,0xbbbb,fr9
171         cstdf           fr8,@(sp,gr7),cc2,1
172         set_gr_gr       gr21,gr22
173         test_mem_limmed 0xdead,0xbeef,gr22
174         inc_gr_immed    4,gr22
175         test_mem_limmed 0xbeef,0xdead,gr22
177         inc_gr_immed    16,sp
178         set_gr_immed    -8,gr7
179         set_fr_iimmed   0xcccc,0xcccc,fr8
180         set_fr_iimmed   0xdddd,0xdddd,fr9
181         cstdf           fr8,@(sp,gr7),cc6,0
182         set_gr_gr       gr21,gr22
183         test_mem_limmed 0xdead,0xbeef,gr22
184         inc_gr_immed    4,gr22
185         test_mem_limmed 0xbeef,0xdead,gr22
187         set_gr_gr       gr20,sp
188         set_mem_limmed  0xbeef,0xdead,sp
189         inc_gr_immed    -4,sp
190         set_mem_limmed  0xdead,0xbeef,sp
191         set_gr_gr       sp,gr21
193         set_gr_immed    0,gr7
194         set_fr_iimmed   0xbeef,0xdead,fr8
195         set_fr_iimmed   0xdead,0xbeef,fr9
196         cstdf           fr8,@(sp,gr7),cc3,1
197         set_gr_gr       gr21,gr22
198         test_mem_limmed 0xdead,0xbeef,gr22
199         inc_gr_immed    4,gr22
200         test_mem_limmed 0xbeef,0xdead,gr22
202         inc_gr_immed    -8,sp
203         set_gr_immed    8,gr7
204         set_fr_iimmed   0xaaaa,0xaaaa,fr8
205         set_fr_iimmed   0xbbbb,0xbbbb,fr9
206         cstdf           fr8,@(sp,gr7),cc3,0
207         set_gr_gr       gr21,gr22
208         test_mem_limmed 0xdead,0xbeef,gr22
209         inc_gr_immed    4,gr22
210         test_mem_limmed 0xbeef,0xdead,gr22
212         inc_gr_immed    16,sp
213         set_gr_immed    -8,gr7
214         set_fr_iimmed   0xcccc,0xcccc,fr8
215         set_fr_iimmed   0xdddd,0xdddd,fr9
216         cstdf           fr8,@(sp,gr7),cc7,1
217         set_gr_gr       gr21,gr22
218         test_mem_limmed 0xdead,0xbeef,gr22
219         inc_gr_immed    4,gr22
220         test_mem_limmed 0xbeef,0xdead,gr22
222         pass