OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [nfstoi.cgs] - Blame information for rev 24

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for nfstoi $FRj,$FRk
2
# mach: fr500 fr550 frv
3
 
4
        .include "testutils.inc"
5
 
6
        float_constants
7
        start
8
        load_float_constants
9
 
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
16
 
17
        nfstoi          fr20,fr1
18
        test_fr_iimmed  0,fr1
19
        test_spr_immed  0,fner1
20
        test_spr_immed  0,fner0
21
 
22
        nfstoi          fr32,fr1
23
        test_fr_iimmed  0x00000002,fr1
24
        test_spr_immed  0,fner1
25
        test_spr_immed  0,fner0
26
 
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
32
 
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
38
 
39
        nfstoi          fr52,fr1
40
        test_fr_iimmed  0x7fffffff,fr1
41
        test_spr_immed  0,fner1
42
        test_spr_immed  0,fner0
43
 
44
        nfstoi          fr56,fr1
45
        test_fr_iimmed  0x80000000,fr1
46
        test_spr_immed  0,fner1
47
        test_spr_immed  0,fner0
48
 
49
        pass

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.