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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [cfitos.cgs] - Blame information for rev 438

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for cfitos $FRj,$FRk,$CCi,$cond
2
# mach: fr500 fr550 frv
3
 
4
        .include "testutils.inc"
5
 
6
        float_constants
7
        start
8
        load_float_constants
9
 
10
        .global cfitos
11
cfitos:
12
        set_spr_immed   0x1b1b,cccr
13
 
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
18
 
19
        set_fr_iimmed   0x0000,0x0002,fr1
20
        cfitos          fr1,fr1,cc0,1
21
        test_fr_fr      fr1,fr32
22
 
23
        set_fr_iimmed   0xdead,0xbeef,fr1
24
        cfitos          fr1,fr1,cc4,1
25
        test_fr_iimmed  0xce054904,fr1
26
 
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
31
 
32
        set_fr_iimmed   0x0000,0x0002,fr1
33
        cfitos          fr1,fr1,cc1,0
34
        test_fr_fr      fr1,fr32
35
 
36
        set_fr_iimmed   0xdead,0xbeef,fr1
37
        cfitos          fr1,fr1,cc5,0
38
        test_fr_iimmed  0xce054904,fr1
39
 
40
        set_fr_iimmed   0,0,fr1
41
        cfitos          fr1,fr1,cc0,0
42
        test_fr_iimmed  0,fr1
43
 
44
        set_fr_iimmed   0x0000,0x0002,fr1
45
        cfitos          fr1,fr1,cc0,0
46
        test_fr_iimmed  0x00000002,fr1
47
 
48
        set_fr_iimmed   0xdead,0xbeef,fr1
49
        cfitos          fr1,fr1,cc4,0
50
        test_fr_iimmed  0xdeadbeef,fr1
51
 
52
        set_fr_iimmed   0,0,fr1
53
        cfitos          fr1,fr1,cc1,1
54
        test_fr_iimmed  0,fr1
55
 
56
        set_fr_iimmed   0x0000,0x0002,fr1
57
        cfitos          fr1,fr1,cc1,1
58
        test_fr_iimmed  0x00000002,fr1
59
 
60
        set_fr_iimmed   0xdead,0xbeef,fr1
61
        cfitos          fr1,fr1,cc5,1
62
        test_fr_iimmed  0xdeadbeef,fr1
63
 
64
        set_fr_iimmed   0,0,fr1
65
        cfitos          fr1,fr1,cc2,1
66
        test_fr_iimmed  0,fr1
67
 
68
        set_fr_iimmed   0x0000,0x0002,fr1
69
        cfitos          fr1,fr1,cc2,0
70
        test_fr_iimmed  0x00000002,fr1
71
 
72
        set_fr_iimmed   0xdead,0xbeef,fr1
73
        cfitos          fr1,fr1,cc6,1
74
        test_fr_iimmed  0xdeadbeef,fr1
75
 
76
        set_fr_iimmed   0,0,fr1
77
        cfitos          fr1,fr1,cc3,0
78
        test_fr_iimmed  0,fr1
79
 
80
        set_fr_iimmed   0x0000,0x0002,fr1
81
        cfitos          fr1,fr1,cc3,1
82
        test_fr_iimmed  0x00000002,fr1
83
 
84
        set_fr_iimmed   0xdead,0xbeef,fr1
85
        cfitos          fr1,fr1,cc7,0
86
        test_fr_iimmed  0xdeadbeef,fr1
87
 
88
        pass

powered by: WebSVN 2.1.0

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