OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for cfstoi $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 cfstoi
11
cfstoi:
12
        set_spr_immed   0x1b1b,cccr
13
 
14
        cfstoi          fr16,fr1,cc0,1
15
        test_fr_iimmed  0,fr1
16
        cfstoi          fr20,fr1,cc0,1
17
        test_fr_iimmed  0,fr1
18
 
19
        cfstoi          fr32,fr1,cc4,1
20
        test_fr_iimmed  0x00000002,fr1
21
 
22
        set_fr_iimmed   0xce05,0x4904,fr1
23
        cfstoi          fr1,fr1,cc4,1
24
        test_fr_iimmed  0xdeadbf00,fr1
25
 
26
        cfstoi          fr16,fr1,cc1,0
27
        test_fr_iimmed  0,fr1
28
        cfstoi          fr20,fr1,cc1,0
29
        test_fr_iimmed  0,fr1
30
 
31
        cfstoi          fr32,fr1,cc5,0
32
        test_fr_iimmed  0x00000002,fr1
33
 
34
        set_fr_iimmed   0xce05,0x4904,fr1
35
        cfstoi          fr1,fr1,cc5,0
36
        test_fr_iimmed  0xdeadbf00,fr1
37
 
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
43
 
44
        cfstoi          fr32,fr1,cc4,0
45
        test_fr_iimmed  0xdeadbeef,fr1
46
 
47
        cfstoi          fr1,fr1,cc4,0
48
        test_fr_iimmed  0xdeadbeef,fr1
49
 
50
        cfstoi          fr16,fr1,cc1,1
51
        test_fr_iimmed  0xdeadbeef,fr1
52
        cfstoi          fr20,fr1,cc1,1
53
        test_fr_iimmed  0xdeadbeef,fr1
54
 
55
        cfstoi          fr32,fr1,cc5,1
56
        test_fr_iimmed  0xdeadbeef,fr1
57
 
58
        cfstoi          fr1,fr1,cc5,1
59
        test_fr_iimmed  0xdeadbeef,fr1
60
 
61
        cfstoi          fr16,fr1,cc2,1
62
        test_fr_iimmed  0xdeadbeef,fr1
63
        cfstoi          fr20,fr1,cc2,0
64
        test_fr_iimmed  0xdeadbeef,fr1
65
 
66
        cfstoi          fr32,fr1,cc6,1
67
        test_fr_iimmed  0xdeadbeef,fr1
68
 
69
        cfstoi          fr1,fr1,cc6,0
70
        test_fr_iimmed  0xdeadbeef,fr1
71
 
72
        cfstoi          fr16,fr1,cc3,1
73
        test_fr_iimmed  0xdeadbeef,fr1
74
        cfstoi          fr20,fr1,cc3,0
75
        test_fr_iimmed  0xdeadbeef,fr1
76
 
77
        cfstoi          fr32,fr1,cc7,1
78
        test_fr_iimmed  0xdeadbeef,fr1
79
 
80
        cfstoi          fr1,fr1,cc7,0
81
        test_fr_iimmed  0xdeadbeef,fr1
82
 
83
        pass

powered by: WebSVN 2.1.0

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