Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cfabss.cgs
blob752a40bdbf277c9d6a24539da1a5038a2801ced6
1 # frv testcase for cfabss $FRj,$FRk,$CCi,$cond
2 # mach: fr500 fr550 frv
4         .include "testutils.inc"
6         float_constants
7         start
8         load_float_constants
10         .global cfabss
11 cfabss:
12         set_spr_immed   0x1b1b,cccr
14         cfabss          fr0,fr1,cc0,1
15         test_fr_fr      fr1,fr52
16         cfabss          fr8,fr1,cc0,1
17         test_fr_fr      fr1,fr28
18         cfabss          fr12,fr1,cc0,1
19         test_fr_fr      fr1,fr24
20         cfabss          fr24,fr1,cc4,1
21         test_fr_fr      fr1,fr24
22         cfabss          fr28,fr1,cc4,1
23         test_fr_fr      fr1,fr28
24         cfabss          fr52,fr1,cc4,1
25         test_fr_fr      fr1,fr52
27         cfabss          fr0,fr1,cc1,0
28         test_fr_fr      fr1,fr52
29         cfabss          fr8,fr1,cc1,0
30         test_fr_fr      fr1,fr28
31         cfabss          fr12,fr1,cc1,0
32         test_fr_fr      fr1,fr24
33         cfabss          fr24,fr1,cc5,0
34         test_fr_fr      fr1,fr24
35         cfabss          fr28,fr1,cc5,0
36         test_fr_fr      fr1,fr28
37         cfabss          fr52,fr1,cc5,0
38         test_fr_fr      fr1,fr52
40         set_fr_iimmed   0xdead,0xbeef,fr1
41         cfabss          fr0,fr1,cc0,0
42         test_fr_iimmed  0xdeadbeef,fr1
43         cfabss          fr8,fr1,cc0,0
44         test_fr_iimmed  0xdeadbeef,fr1
45         cfabss          fr12,fr1,cc0,0
46         test_fr_iimmed  0xdeadbeef,fr1
47         cfabss          fr24,fr1,cc4,0
48         test_fr_iimmed  0xdeadbeef,fr1
49         cfabss          fr28,fr1,cc4,0
50         test_fr_iimmed  0xdeadbeef,fr1
51         cfabss          fr52,fr1,cc4,0
52         test_fr_iimmed  0xdeadbeef,fr1
54         set_fr_iimmed   0xdead,0xbeef,fr1
55         cfabss          fr0,fr1,cc1,1
56         test_fr_iimmed  0xdeadbeef,fr1
57         cfabss          fr8,fr1,cc1,1
58         test_fr_iimmed  0xdeadbeef,fr1
59         cfabss          fr12,fr1,cc1,1
60         test_fr_iimmed  0xdeadbeef,fr1
61         cfabss          fr24,fr1,cc5,1
62         test_fr_iimmed  0xdeadbeef,fr1
63         cfabss          fr28,fr1,cc5,1
64         test_fr_iimmed  0xdeadbeef,fr1
65         cfabss          fr52,fr1,cc5,1
66         test_fr_iimmed  0xdeadbeef,fr1
68         set_fr_iimmed   0xdead,0xbeef,fr1
69         cfabss          fr0,fr1,cc2,1
70         test_fr_iimmed  0xdeadbeef,fr1
71         cfabss          fr8,fr1,cc2,0
72         test_fr_iimmed  0xdeadbeef,fr1
73         cfabss          fr12,fr1,cc2,1
74         test_fr_iimmed  0xdeadbeef,fr1
75         cfabss          fr24,fr1,cc6,0
76         test_fr_iimmed  0xdeadbeef,fr1
77         cfabss          fr28,fr1,cc6,1
78         test_fr_iimmed  0xdeadbeef,fr1
79         cfabss          fr52,fr1,cc6,0
80         test_fr_iimmed  0xdeadbeef,fr1
82         set_fr_iimmed   0xdead,0xbeef,fr1
83         cfabss          fr0,fr1,cc3,1
84         test_fr_iimmed  0xdeadbeef,fr1
85         cfabss          fr8,fr1,cc3,0
86         test_fr_iimmed  0xdeadbeef,fr1
87         cfabss          fr12,fr1,cc3,1
88         test_fr_iimmed  0xdeadbeef,fr1
89         cfabss          fr24,fr1,cc7,0
90         test_fr_iimmed  0xdeadbeef,fr1
91         cfabss          fr28,fr1,cc7,1
92         test_fr_iimmed  0xdeadbeef,fr1
93         cfabss          fr52,fr1,cc7,0
94         test_fr_iimmed  0xdeadbeef,fr1
96         pass