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