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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [frv/] [cfnegs.cgs] - Blame information for rev 373

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

Line No. Rev Author Line
1 330 jeremybenn
# frv testcase for cfnegs $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 cfnegs
11
cfnegs:
12
        set_spr_immed   0x1b1b,cccr
13
 
14
        cfnegs          fr0,fr1,cc0,1
15
        test_fr_fr      fr1,fr52
16
        cfnegs          fr8,fr1,cc0,1
17
        test_fr_fr      fr1,fr28
18
        cfnegs          fr12,fr1,cc0,1
19
        test_fr_fr      fr1,fr24
20
        cfnegs          fr24,fr1,cc4,1
21
        test_fr_fr      fr1,fr12
22
        cfnegs          fr28,fr1,cc4,1
23
        test_fr_fr      fr1,fr8
24
        cfnegs          fr52,fr1,cc4,1
25
        test_fr_fr      fr1,fr0
26
 
27
        cfnegs          fr0,fr1,cc1,0
28
        test_fr_fr      fr1,fr52
29
        cfnegs          fr8,fr1,cc1,0
30
        test_fr_fr      fr1,fr28
31
        cfnegs          fr12,fr1,cc1,0
32
        test_fr_fr      fr1,fr24
33
        cfnegs          fr24,fr1,cc5,0
34
        test_fr_fr      fr1,fr12
35
        cfnegs          fr28,fr1,cc5,0
36
        test_fr_fr      fr1,fr8
37
        cfnegs          fr52,fr1,cc5,0
38
        test_fr_fr      fr1,fr0
39
 
40
        set_fr_iimmed   0xdead,0xbeef,fr1
41
        cfnegs          fr0,fr1,cc0,0
42
        test_fr_iimmed  0xdeadbeef,fr1
43
        cfnegs          fr8,fr1,cc0,0
44
        test_fr_iimmed  0xdeadbeef,fr1
45
        cfnegs          fr12,fr1,cc0,0
46
        test_fr_iimmed  0xdeadbeef,fr1
47
        cfnegs          fr24,fr1,cc4,0
48
        test_fr_iimmed  0xdeadbeef,fr1
49
        cfnegs          fr28,fr1,cc4,0
50
        test_fr_iimmed  0xdeadbeef,fr1
51
        cfnegs          fr52,fr1,cc4,0
52
        test_fr_iimmed  0xdeadbeef,fr1
53
 
54
        set_fr_iimmed   0xdead,0xbeef,fr1
55
        cfnegs          fr0,fr1,cc1,1
56
        test_fr_iimmed  0xdeadbeef,fr1
57
        cfnegs          fr8,fr1,cc1,1
58
        test_fr_iimmed  0xdeadbeef,fr1
59
        cfnegs          fr12,fr1,cc1,1
60
        test_fr_iimmed  0xdeadbeef,fr1
61
        cfnegs          fr24,fr1,cc5,1
62
        test_fr_iimmed  0xdeadbeef,fr1
63
        cfnegs          fr28,fr1,cc5,1
64
        test_fr_iimmed  0xdeadbeef,fr1
65
        cfnegs          fr52,fr1,cc5,1
66
        test_fr_iimmed  0xdeadbeef,fr1
67
 
68
        set_fr_iimmed   0xdead,0xbeef,fr1
69
        cfnegs          fr0,fr1,cc2,1
70
        test_fr_iimmed  0xdeadbeef,fr1
71
        cfnegs          fr8,fr1,cc2,0
72
        test_fr_iimmed  0xdeadbeef,fr1
73
        cfnegs          fr12,fr1,cc2,1
74
        test_fr_iimmed  0xdeadbeef,fr1
75
        cfnegs          fr24,fr1,cc6,0
76
        test_fr_iimmed  0xdeadbeef,fr1
77
        cfnegs          fr28,fr1,cc6,1
78
        test_fr_iimmed  0xdeadbeef,fr1
79
        cfnegs          fr52,fr1,cc6,0
80
        test_fr_iimmed  0xdeadbeef,fr1
81
 
82
        set_fr_iimmed   0xdead,0xbeef,fr1
83
        cfnegs          fr0,fr1,cc3,1
84
        test_fr_iimmed  0xdeadbeef,fr1
85
        cfnegs          fr8,fr1,cc3,0
86
        test_fr_iimmed  0xdeadbeef,fr1
87
        cfnegs          fr12,fr1,cc3,1
88
        test_fr_iimmed  0xdeadbeef,fr1
89
        cfnegs          fr24,fr1,cc7,0
90
        test_fr_iimmed  0xdeadbeef,fr1
91
        cfnegs          fr28,fr1,cc7,1
92
        test_fr_iimmed  0xdeadbeef,fr1
93
        cfnegs          fr52,fr1,cc7,0
94
        test_fr_iimmed  0xdeadbeef,fr1
95
 
96
        pass

powered by: WebSVN 2.1.0

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