Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cmbtoh.cgs
blob5e7c91ae669a3b8dce30074f40c0b8d45cce5b1e
1 # frv testcase for cmbtoh $FRj,$FRk,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cmbtoh
9 cmbtoh:
10         set_spr_immed   0x1b1b,cccr
12         set_fr_iimmed   0xdead,0xbeef,fr10
13         cmbtoh          fr10,fr12,cc0,1
14         test_fr_limmed  0x00de,0x00ad,fr12
15         test_fr_limmed  0x00be,0x00ef,fr13
17         set_fr_iimmed   0x1234,0x5678,fr10
18         cmbtoh          fr10,fr12,cc4,1
19         test_fr_limmed  0x0012,0x0034,fr12
20         test_fr_limmed  0x0056,0x0078,fr13
22         set_fr_iimmed   0xdead,0xbeef,fr10
23         cmbtoh          fr10,fr12,cc1,0
24         test_fr_limmed  0x00de,0x00ad,fr12
25         test_fr_limmed  0x00be,0x00ef,fr13
27         set_fr_iimmed   0x1234,0x5678,fr10
28         cmbtoh          fr10,fr12,cc5,0
29         test_fr_limmed  0x0012,0x0034,fr12
30         test_fr_limmed  0x0056,0x0078,fr13
32         set_fr_iimmed   0x1111,0x1111,fr12
33         set_fr_iimmed   0x2222,0x2222,fr13
34         set_fr_iimmed   0xdead,0xbeef,fr10
35         cmbtoh          fr10,fr12,cc0,0
36         test_fr_limmed  0x1111,0x1111,fr12
37         test_fr_limmed  0x2222,0x2222,fr13
39         set_fr_iimmed   0x1234,0x5678,fr10
40         cmbtoh          fr10,fr12,cc4,0
41         test_fr_limmed  0x1111,0x1111,fr12
42         test_fr_limmed  0x2222,0x2222,fr13
44         set_fr_iimmed   0xdead,0xbeef,fr10
45         cmbtoh          fr10,fr12,cc1,1
46         test_fr_limmed  0x1111,0x1111,fr12
47         test_fr_limmed  0x2222,0x2222,fr13
49         set_fr_iimmed   0x1234,0x5678,fr10
50         cmbtoh          fr10,fr12,cc5,1
51         test_fr_limmed  0x1111,0x1111,fr12
52         test_fr_limmed  0x2222,0x2222,fr13
54         set_fr_iimmed   0xdead,0xbeef,fr10
55         cmbtoh          fr10,fr12,cc2,1
56         test_fr_limmed  0x1111,0x1111,fr12
57         test_fr_limmed  0x2222,0x2222,fr13
59         set_fr_iimmed   0x1234,0x5678,fr10
60         cmbtoh          fr10,fr12,cc6,0
61         test_fr_limmed  0x1111,0x1111,fr12
62         test_fr_limmed  0x2222,0x2222,fr13
64         set_fr_iimmed   0xdead,0xbeef,fr10
65         cmbtoh          fr10,fr12,cc3,1
66         test_fr_limmed  0x1111,0x1111,fr12
67         test_fr_limmed  0x2222,0x2222,fr13
69         set_fr_iimmed   0x1234,0x5678,fr10
70         cmbtoh          fr10,fr12,cc7,0
71         test_fr_limmed  0x1111,0x1111,fr12
72         test_fr_limmed  0x2222,0x2222,fr13
74         pass