Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cfitos.cgs
blobb24184e65c0c2e2b9782d80f354c1b66f78b8a84
1 # frv testcase for cfitos $FRj,$FRk,$CCi,$cond
2 # mach: fr500 fr550 frv
4         .include "testutils.inc"
6         float_constants
7         start
8         load_float_constants
10         .global cfitos
11 cfitos:
12         set_spr_immed   0x1b1b,cccr
14         set_fr_iimmed   0,0,fr1
15         cfitos          fr1,fr1,cc0,1
16         test_fr_fr      fr1,fr16
17         test_fr_fr      fr1,fr20
19         set_fr_iimmed   0x0000,0x0002,fr1
20         cfitos          fr1,fr1,cc0,1
21         test_fr_fr      fr1,fr32
23         set_fr_iimmed   0xdead,0xbeef,fr1
24         cfitos          fr1,fr1,cc4,1
25         test_fr_iimmed  0xce054904,fr1
27         set_fr_iimmed   0,0,fr1
28         cfitos          fr1,fr1,cc1,0
29         test_fr_fr      fr1,fr16
30         test_fr_fr      fr1,fr20
32         set_fr_iimmed   0x0000,0x0002,fr1
33         cfitos          fr1,fr1,cc1,0
34         test_fr_fr      fr1,fr32
36         set_fr_iimmed   0xdead,0xbeef,fr1
37         cfitos          fr1,fr1,cc5,0
38         test_fr_iimmed  0xce054904,fr1
40         set_fr_iimmed   0,0,fr1
41         cfitos          fr1,fr1,cc0,0
42         test_fr_iimmed  0,fr1
44         set_fr_iimmed   0x0000,0x0002,fr1
45         cfitos          fr1,fr1,cc0,0
46         test_fr_iimmed  0x00000002,fr1
48         set_fr_iimmed   0xdead,0xbeef,fr1
49         cfitos          fr1,fr1,cc4,0
50         test_fr_iimmed  0xdeadbeef,fr1
52         set_fr_iimmed   0,0,fr1
53         cfitos          fr1,fr1,cc1,1
54         test_fr_iimmed  0,fr1
56         set_fr_iimmed   0x0000,0x0002,fr1
57         cfitos          fr1,fr1,cc1,1
58         test_fr_iimmed  0x00000002,fr1
60         set_fr_iimmed   0xdead,0xbeef,fr1
61         cfitos          fr1,fr1,cc5,1
62         test_fr_iimmed  0xdeadbeef,fr1
64         set_fr_iimmed   0,0,fr1
65         cfitos          fr1,fr1,cc2,1
66         test_fr_iimmed  0,fr1
68         set_fr_iimmed   0x0000,0x0002,fr1
69         cfitos          fr1,fr1,cc2,0
70         test_fr_iimmed  0x00000002,fr1
72         set_fr_iimmed   0xdead,0xbeef,fr1
73         cfitos          fr1,fr1,cc6,1
74         test_fr_iimmed  0xdeadbeef,fr1
76         set_fr_iimmed   0,0,fr1
77         cfitos          fr1,fr1,cc3,0
78         test_fr_iimmed  0,fr1
80         set_fr_iimmed   0x0000,0x0002,fr1
81         cfitos          fr1,fr1,cc3,1
82         test_fr_iimmed  0x00000002,fr1
84         set_fr_iimmed   0xdead,0xbeef,fr1
85         cfitos          fr1,fr1,cc7,0
86         test_fr_iimmed  0xdeadbeef,fr1
88         pass