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