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/] [cmbtohe.cgs] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for cmbtohe $FRj,$FRk
2
# mach: frv
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global cmbtohe
9
cmbtohe:
10
        set_spr_immed   0x1b1b,cccr
11
 
12
        set_fr_iimmed   0xdead,0xbeef,fr10
13
        cmbtohe         fr10,fr12,cc0,1
14
        test_fr_limmed  0x00de,0x00de,fr12
15
        test_fr_limmed  0x00ad,0x00ad,fr13
16
        test_fr_limmed  0x00be,0x00be,fr14
17
        test_fr_limmed  0x00ef,0x00ef,fr15
18
 
19
        set_fr_iimmed   0x1234,0x5678,fr10
20
        cmbtohe         fr10,fr12,cc4,1
21
        test_fr_limmed  0x0012,0x0012,fr12
22
        test_fr_limmed  0x0034,0x0034,fr13
23
        test_fr_limmed  0x0056,0x0056,fr14
24
        test_fr_limmed  0x0078,0x0078,fr15
25
 
26
        set_fr_iimmed   0xdead,0xbeef,fr10
27
        cmbtohe         fr10,fr12,cc1,0
28
        test_fr_limmed  0x00de,0x00de,fr12
29
        test_fr_limmed  0x00ad,0x00ad,fr13
30
        test_fr_limmed  0x00be,0x00be,fr14
31
        test_fr_limmed  0x00ef,0x00ef,fr15
32
 
33
        set_fr_iimmed   0x1234,0x5678,fr10
34
        cmbtohe         fr10,fr12,cc5,0
35
        test_fr_limmed  0x0012,0x0012,fr12
36
        test_fr_limmed  0x0034,0x0034,fr13
37
        test_fr_limmed  0x0056,0x0056,fr14
38
        test_fr_limmed  0x0078,0x0078,fr15
39
 
40
        set_fr_iimmed   0x1111,0x1111,fr12
41
        set_fr_iimmed   0x2222,0x2222,fr13
42
        set_fr_iimmed   0x3333,0x3333,fr14
43
        set_fr_iimmed   0x4444,0x4444,fr15
44
        set_fr_iimmed   0xdead,0xbeef,fr10
45
        cmbtohe         fr10,fr12,cc0,0
46
        test_fr_limmed  0x1111,0x1111,fr12
47
        test_fr_limmed  0x2222,0x2222,fr13
48
        test_fr_limmed  0x3333,0x3333,fr14
49
        test_fr_limmed  0x4444,0x4444,fr15
50
 
51
        set_fr_iimmed   0x1234,0x5678,fr10
52
        cmbtohe         fr10,fr12,cc4,0
53
        test_fr_limmed  0x1111,0x1111,fr12
54
        test_fr_limmed  0x2222,0x2222,fr13
55
        test_fr_limmed  0x3333,0x3333,fr14
56
        test_fr_limmed  0x4444,0x4444,fr15
57
 
58
        set_fr_iimmed   0xdead,0xbeef,fr10
59
        cmbtohe         fr10,fr12,cc1,1
60
        test_fr_limmed  0x1111,0x1111,fr12
61
        test_fr_limmed  0x2222,0x2222,fr13
62
        test_fr_limmed  0x3333,0x3333,fr14
63
        test_fr_limmed  0x4444,0x4444,fr15
64
 
65
        set_fr_iimmed   0x1234,0x5678,fr10
66
        cmbtohe         fr10,fr12,cc5,1
67
        test_fr_limmed  0x1111,0x1111,fr12
68
        test_fr_limmed  0x2222,0x2222,fr13
69
        test_fr_limmed  0x3333,0x3333,fr14
70
        test_fr_limmed  0x4444,0x4444,fr15
71
 
72
        set_fr_iimmed   0xdead,0xbeef,fr10
73
        cmbtohe         fr10,fr12,cc2,1
74
        test_fr_limmed  0x1111,0x1111,fr12
75
        test_fr_limmed  0x2222,0x2222,fr13
76
        test_fr_limmed  0x3333,0x3333,fr14
77
        test_fr_limmed  0x4444,0x4444,fr15
78
 
79
        set_fr_iimmed   0x1234,0x5678,fr10
80
        cmbtohe         fr10,fr12,cc6,0
81
        test_fr_limmed  0x1111,0x1111,fr12
82
        test_fr_limmed  0x2222,0x2222,fr13
83
        test_fr_limmed  0x3333,0x3333,fr14
84
        test_fr_limmed  0x4444,0x4444,fr15
85
 
86
        set_fr_iimmed   0xdead,0xbeef,fr10
87
        cmbtohe         fr10,fr12,cc3,0
88
        test_fr_limmed  0x1111,0x1111,fr12
89
        test_fr_limmed  0x2222,0x2222,fr13
90
        test_fr_limmed  0x3333,0x3333,fr14
91
        test_fr_limmed  0x4444,0x4444,fr15
92
 
93
        set_fr_iimmed   0x1234,0x5678,fr10
94
        cmbtohe         fr10,fr12,cc7,1
95
        test_fr_limmed  0x1111,0x1111,fr12
96
        test_fr_limmed  0x2222,0x2222,fr13
97
        test_fr_limmed  0x3333,0x3333,fr14
98
        test_fr_limmed  0x4444,0x4444,fr15
99
 
100
        pass

powered by: WebSVN 2.1.0

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