Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / nfstoi.cgs
blob296812827ae267564f6bf8e400a57b0ceb4877e0
1 # frv testcase for nfstoi $FRj,$FRk
2 # mach: fr500 fr550 frv
4         .include "testutils.inc"
6         float_constants
7         start
8         load_float_constants
10         .global nfstoi
11 nfstoi:
12         nfstoi          fr16,fr1
13         test_fr_iimmed  0,fr1
14         test_spr_immed  0,fner1
15         test_spr_immed  0,fner0
17         nfstoi          fr20,fr1
18         test_fr_iimmed  0,fr1
19         test_spr_immed  0,fner1
20         test_spr_immed  0,fner0
22         nfstoi          fr32,fr1
23         test_fr_iimmed  0x00000002,fr1
24         test_spr_immed  0,fner1
25         test_spr_immed  0,fner0
27         set_fr_iimmed   0xce05,0x4904,fr1
28         nfstoi          fr1,fr1
29         test_fr_iimmed  0xdeadbf00,fr1
30         test_spr_immed  0,fner1
31         test_spr_immed  0,fner0
33         ; These were an attempt to cause overflow and nan exceptions
34         nfstoi          fr48,fr1
35         test_fr_iimmed  0x7fffffff,fr1
36         test_spr_immed  0,fner1
37         test_spr_immed  0,fner0
39         nfstoi          fr52,fr1
40         test_fr_iimmed  0x7fffffff,fr1
41         test_spr_immed  0,fner1
42         test_spr_immed  0,fner0
44         nfstoi          fr56,fr1
45         test_fr_iimmed  0x80000000,fr1
46         test_spr_immed  0,fner1
47         test_spr_immed  0,fner0
49         pass