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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [cmbtoh.cgs] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for cmbtoh $FRj,$FRk,$CCi,$cond
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global cmbtoh
9
cmbtoh:
10
        set_spr_immed   0x1b1b,cccr
11
 
12
        set_fr_iimmed   0xdead,0xbeef,fr10
13
        cmbtoh          fr10,fr12,cc0,1
14
        test_fr_limmed  0x00de,0x00ad,fr12
15
        test_fr_limmed  0x00be,0x00ef,fr13
16
 
17
        set_fr_iimmed   0x1234,0x5678,fr10
18
        cmbtoh          fr10,fr12,cc4,1
19
        test_fr_limmed  0x0012,0x0034,fr12
20
        test_fr_limmed  0x0056,0x0078,fr13
21
 
22
        set_fr_iimmed   0xdead,0xbeef,fr10
23
        cmbtoh          fr10,fr12,cc1,0
24
        test_fr_limmed  0x00de,0x00ad,fr12
25
        test_fr_limmed  0x00be,0x00ef,fr13
26
 
27
        set_fr_iimmed   0x1234,0x5678,fr10
28
        cmbtoh          fr10,fr12,cc5,0
29
        test_fr_limmed  0x0012,0x0034,fr12
30
        test_fr_limmed  0x0056,0x0078,fr13
31
 
32
        set_fr_iimmed   0x1111,0x1111,fr12
33
        set_fr_iimmed   0x2222,0x2222,fr13
34
        set_fr_iimmed   0xdead,0xbeef,fr10
35
        cmbtoh          fr10,fr12,cc0,0
36
        test_fr_limmed  0x1111,0x1111,fr12
37
        test_fr_limmed  0x2222,0x2222,fr13
38
 
39
        set_fr_iimmed   0x1234,0x5678,fr10
40
        cmbtoh          fr10,fr12,cc4,0
41
        test_fr_limmed  0x1111,0x1111,fr12
42
        test_fr_limmed  0x2222,0x2222,fr13
43
 
44
        set_fr_iimmed   0xdead,0xbeef,fr10
45
        cmbtoh          fr10,fr12,cc1,1
46
        test_fr_limmed  0x1111,0x1111,fr12
47
        test_fr_limmed  0x2222,0x2222,fr13
48
 
49
        set_fr_iimmed   0x1234,0x5678,fr10
50
        cmbtoh          fr10,fr12,cc5,1
51
        test_fr_limmed  0x1111,0x1111,fr12
52
        test_fr_limmed  0x2222,0x2222,fr13
53
 
54
        set_fr_iimmed   0xdead,0xbeef,fr10
55
        cmbtoh          fr10,fr12,cc2,1
56
        test_fr_limmed  0x1111,0x1111,fr12
57
        test_fr_limmed  0x2222,0x2222,fr13
58
 
59
        set_fr_iimmed   0x1234,0x5678,fr10
60
        cmbtoh          fr10,fr12,cc6,0
61
        test_fr_limmed  0x1111,0x1111,fr12
62
        test_fr_limmed  0x2222,0x2222,fr13
63
 
64
        set_fr_iimmed   0xdead,0xbeef,fr10
65
        cmbtoh          fr10,fr12,cc3,1
66
        test_fr_limmed  0x1111,0x1111,fr12
67
        test_fr_limmed  0x2222,0x2222,fr13
68
 
69
        set_fr_iimmed   0x1234,0x5678,fr10
70
        cmbtoh          fr10,fr12,cc7,0
71
        test_fr_limmed  0x1111,0x1111,fr12
72
        test_fr_limmed  0x2222,0x2222,fr13
73
 
74
        pass

powered by: WebSVN 2.1.0

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