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

Subversion Repositories openrisc

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