Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cldub.cgs
blobb1f07766ddd74b51cbfb5f41a01fdeca0b559c38
1 # frv testcase for cldub @($GRi,$GRj),$GRk,$cci,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cldub
9 cldub:
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         cldub           @(sp,gr7),gr8,cc0,1
17         test_gr_limmed  0x0000,0x00de,gr8
19         set_gr_immed    1,gr7
20         cldub           @(sp,gr7),gr8,cc0,1
21         test_gr_limmed  0x0000,0x00ad,gr8
23         set_mem_limmed  0xffff,0xff00,sp
24         inc_gr_immed    4,sp
25         set_gr_immed    -1,gr7
26         cldub           @(sp,gr7),gr8,cc4,1
27         test_gr_limmed  0x0000,0x0000,gr8
29         set_mem_limmed  0xdead,0xbeef,sp
30         set_gr_limmed   0xbeef,0xdead,gr8
32         set_gr_immed    0,gr7
33         cldub           @(sp,gr7),gr8,cc0,0
34         test_gr_limmed  0xbeef,0xdead,gr8
36         set_gr_immed    1,gr7
37         cldub           @(sp,gr7),gr8,cc0,0
38         test_gr_limmed  0xbeef,0xdead,gr8
40         set_mem_limmed  0xffff,0xff00,sp
41         inc_gr_immed    4,sp
42         set_gr_immed    -1,gr7
43         cldub           @(sp,gr7),gr8,cc4,0
44         test_gr_limmed  0xbeef,0xdead,gr8
46         set_mem_limmed  0xdead,0xbeef,sp
47         set_gr_limmed   0xbeef,0xdead,gr8
49         set_gr_immed    0,gr7
50         cldub           @(sp,gr7),gr8,cc1,0
51         test_gr_limmed  0x0000,0x00de,gr8
53         set_gr_immed    1,gr7
54         cldub           @(sp,gr7),gr8,cc1,0
55         test_gr_limmed  0x0000,0x00ad,gr8
57         set_mem_limmed  0xffff,0xff00,sp
58         inc_gr_immed    4,sp
59         set_gr_immed    -1,gr7
60         cldub           @(sp,gr7),gr8,cc5,0
61         test_gr_limmed  0x0000,0x0000,gr8
63         set_mem_limmed  0xdead,0xbeef,sp
64         set_gr_limmed   0xbeef,0xdead,gr8
66         set_gr_immed    0,gr7
67         cldub           @(sp,gr7),gr8,cc1,1
68         test_gr_limmed  0xbeef,0xdead,gr8
70         set_gr_immed    1,gr7
71         cldub           @(sp,gr7),gr8,cc1,1
72         test_gr_limmed  0xbeef,0xdead,gr8
74         set_mem_limmed  0xffff,0xff00,sp
75         inc_gr_immed    4,sp
76         set_gr_immed    -1,gr7
77         cldub           @(sp,gr7),gr8,cc5,1
78         test_gr_limmed  0xbeef,0xdead,gr8
80         set_mem_limmed  0xdead,0xbeef,sp
81         set_gr_limmed   0xbeef,0xdead,gr8
83         set_gr_immed    0,gr7
84         cldub           @(sp,gr7),gr8,cc2,0
85         test_gr_limmed  0xbeef,0xdead,gr8
87         set_gr_immed    1,gr7
88         cldub           @(sp,gr7),gr8,cc2,0
89         test_gr_limmed  0xbeef,0xdead,gr8
91         set_mem_limmed  0xffff,0xff00,sp
92         inc_gr_immed    4,sp
93         set_gr_immed    -1,gr7
94         cldub           @(sp,gr7),gr8,cc6,1
95         test_gr_limmed  0xbeef,0xdead,gr8
97         set_mem_limmed  0xdead,0xbeef,sp
98         set_gr_limmed   0xbeef,0xdead,gr8
100         set_gr_immed    0,gr7
101         cldub           @(sp,gr7),gr8,cc3,0
102         test_gr_limmed  0xbeef,0xdead,gr8
104         set_gr_immed    1,gr7
105         cldub           @(sp,gr7),gr8,cc3,0
106         test_gr_limmed  0xbeef,0xdead,gr8
108         set_mem_limmed  0xffff,0xff00,sp
109         inc_gr_immed    4,sp
110         set_gr_immed    -1,gr7
111         cldub           @(sp,gr7),gr8,cc7,1
112         test_gr_limmed  0xbeef,0xdead,gr8
114         pass