Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cfstoi.cgs
blob9ba8d126fe1a53721caae35a95f03df904b11700
1 # frv testcase for cfstoi $FRj,$FRk,$CCi,$cond
2 # mach: fr500 fr550 frv
4         .include "testutils.inc"
6         float_constants
7         start
8         load_float_constants
10         .global cfstoi
11 cfstoi:
12         set_spr_immed   0x1b1b,cccr
14         cfstoi          fr16,fr1,cc0,1
15         test_fr_iimmed  0,fr1
16         cfstoi          fr20,fr1,cc0,1
17         test_fr_iimmed  0,fr1
19         cfstoi          fr32,fr1,cc4,1
20         test_fr_iimmed  0x00000002,fr1
22         set_fr_iimmed   0xce05,0x4904,fr1
23         cfstoi          fr1,fr1,cc4,1
24         test_fr_iimmed  0xdeadbf00,fr1
26         cfstoi          fr16,fr1,cc1,0
27         test_fr_iimmed  0,fr1
28         cfstoi          fr20,fr1,cc1,0
29         test_fr_iimmed  0,fr1
31         cfstoi          fr32,fr1,cc5,0
32         test_fr_iimmed  0x00000002,fr1
34         set_fr_iimmed   0xce05,0x4904,fr1
35         cfstoi          fr1,fr1,cc5,0
36         test_fr_iimmed  0xdeadbf00,fr1
38         set_fr_iimmed   0xdead,0xbeef,fr1
39         cfstoi          fr16,fr1,cc0,0
40         test_fr_iimmed  0xdeadbeef,fr1
41         cfstoi          fr20,fr1,cc0,0
42         test_fr_iimmed  0xdeadbeef,fr1
44         cfstoi          fr32,fr1,cc4,0
45         test_fr_iimmed  0xdeadbeef,fr1
47         cfstoi          fr1,fr1,cc4,0
48         test_fr_iimmed  0xdeadbeef,fr1
50         cfstoi          fr16,fr1,cc1,1
51         test_fr_iimmed  0xdeadbeef,fr1
52         cfstoi          fr20,fr1,cc1,1
53         test_fr_iimmed  0xdeadbeef,fr1
55         cfstoi          fr32,fr1,cc5,1
56         test_fr_iimmed  0xdeadbeef,fr1
58         cfstoi          fr1,fr1,cc5,1
59         test_fr_iimmed  0xdeadbeef,fr1
61         cfstoi          fr16,fr1,cc2,1
62         test_fr_iimmed  0xdeadbeef,fr1
63         cfstoi          fr20,fr1,cc2,0
64         test_fr_iimmed  0xdeadbeef,fr1
66         cfstoi          fr32,fr1,cc6,1
67         test_fr_iimmed  0xdeadbeef,fr1
69         cfstoi          fr1,fr1,cc6,0
70         test_fr_iimmed  0xdeadbeef,fr1
72         cfstoi          fr16,fr1,cc3,1
73         test_fr_iimmed  0xdeadbeef,fr1
74         cfstoi          fr20,fr1,cc3,0
75         test_fr_iimmed  0xdeadbeef,fr1
77         cfstoi          fr32,fr1,cc7,1
78         test_fr_iimmed  0xdeadbeef,fr1
80         cfstoi          fr1,fr1,cc7,0
81         test_fr_iimmed  0xdeadbeef,fr1
83         pass