Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cmhtob.cgs
bloba3f00c52cef7d90c3c2ebf90e2c89b5044420fab
1 # frv testcase for cmhtob $FRj,$FRk,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cmhtob
9 cmhtob:
10         set_spr_immed   0x1b1b,cccr
12         set_fr_iimmed   0x00ad,0x00ef,fr10
13         set_fr_iimmed   0x0034,0x0078,fr11
14         cmhtob          fr10,fr12,cc0,1
15         test_fr_limmed  0xadef,0x3478,fr12
17         set_fr_iimmed   0xdead,0xbeef,fr10
18         set_fr_iimmed   0x1234,0x5678,fr11
19         cmhtob          fr10,fr12,cc0,1
20         test_fr_limmed  0xffff,0xffff,fr12
22         set_fr_iimmed   0x0134,0x0878,fr10
23         set_fr_iimmed   0x10ad,0x80ef,fr11
24         cmhtob          fr10,fr12,cc4,1
25         test_fr_limmed  0xffff,0xffff,fr12
27         set_fr_iimmed   0x00ad,0x00ef,fr10
28         set_fr_iimmed   0x0034,0x0078,fr11
29         cmhtob          fr10,fr12,cc1,0
30         test_fr_limmed  0xadef,0x3478,fr12
32         set_fr_iimmed   0xdead,0xbeef,fr10
33         set_fr_iimmed   0x1234,0x5678,fr11
34         cmhtob          fr10,fr12,cc1,0
35         test_fr_limmed  0xffff,0xffff,fr12
37         set_fr_iimmed   0x0134,0x0878,fr10
38         set_fr_iimmed   0x10ad,0x80ef,fr11
39         cmhtob          fr10,fr12,cc5,0
40         test_fr_limmed  0xffff,0xffff,fr12
42         set_fr_iimmed   0x1111,0x1111,fr12
43         set_fr_iimmed   0x00ad,0x00ef,fr10
44         set_fr_iimmed   0x0034,0x0078,fr11
45         cmhtob          fr10,fr12,cc0,0
46         test_fr_limmed  0x1111,0x1111,fr12
48         set_fr_iimmed   0xdead,0xbeef,fr10
49         set_fr_iimmed   0x1234,0x5678,fr11
50         cmhtob          fr10,fr12,cc0,0
51         test_fr_limmed  0x1111,0x1111,fr12
53         set_fr_iimmed   0x0134,0x0878,fr10
54         set_fr_iimmed   0x10ad,0x80ef,fr11
55         cmhtob          fr10,fr12,cc4,0
56         test_fr_limmed  0x1111,0x1111,fr12
58         set_fr_iimmed   0x00ad,0x00ef,fr10
59         set_fr_iimmed   0x0034,0x0078,fr11
60         cmhtob          fr10,fr12,cc1,1
61         test_fr_limmed  0x1111,0x1111,fr12
63         set_fr_iimmed   0xdead,0xbeef,fr10
64         set_fr_iimmed   0x1234,0x5678,fr11
65         cmhtob          fr10,fr12,cc1,1
66         test_fr_limmed  0x1111,0x1111,fr12
68         set_fr_iimmed   0x0134,0x0878,fr10
69         set_fr_iimmed   0x10ad,0x80ef,fr11
70         cmhtob          fr10,fr12,cc5,1
71         test_fr_limmed  0x1111,0x1111,fr12
73         set_fr_iimmed   0x00ad,0x00ef,fr10
74         set_fr_iimmed   0x0034,0x0078,fr11
75         cmhtob          fr10,fr12,cc2,1
76         test_fr_limmed  0x1111,0x1111,fr12
78         set_fr_iimmed   0xdead,0xbeef,fr10
79         set_fr_iimmed   0x1234,0x5678,fr11
80         cmhtob          fr10,fr12,cc2,0
81         test_fr_limmed  0x1111,0x1111,fr12
83         set_fr_iimmed   0x0134,0x0878,fr10
84         set_fr_iimmed   0x10ad,0x80ef,fr11
85         cmhtob          fr10,fr12,cc6,1
86         test_fr_limmed  0x1111,0x1111,fr12
88         set_fr_iimmed   0x00ad,0x00ef,fr10
89         set_fr_iimmed   0x0034,0x0078,fr11
90         cmhtob          fr10,fr12,cc3,1
91         test_fr_limmed  0x1111,0x1111,fr12
93         set_fr_iimmed   0xdead,0xbeef,fr10
94         set_fr_iimmed   0x1234,0x5678,fr11
95         cmhtob          fr10,fr12,cc7,0
96         test_fr_limmed  0x1111,0x1111,fr12
98         set_fr_iimmed   0x0134,0x0878,fr10
99         set_fr_iimmed   0x10ad,0x80ef,fr11
100         cmhtob          fr10,fr12,cc7,1
101         test_fr_limmed  0x1111,0x1111,fr12
103         pass