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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for scan $GRi,$GRj,$GRk
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global scan
9
scan:
10
        set_gr_limmed   0x2aaa,0xaaaa,gr7
11
        set_gr_limmed   0xaaaa,0xaaaa,gr8
12
        scan            gr7,gr8,gr9
13
        test_gr_immed   0,gr9
14
        test_gr_limmed  0x2aaa,0xaaaa,gr7
15
        test_gr_limmed  0xaaaa,0xaaaa,gr8
16
 
17
        set_gr_limmed   0x2aaa,0xaaaa,gr7
18
        set_gr_limmed   0xaaaa,0xaaab,gr8
19
        scan            gr7,gr8,gr9
20
        test_gr_immed   0,gr9
21
        test_gr_limmed  0x2aaa,0xaaaa,gr7
22
        test_gr_limmed  0xaaaa,0xaaab,gr8
23
 
24
        set_gr_limmed   0xd555,0x5555,gr7
25
        set_gr_limmed   0xaaaa,0xaaaa,gr8
26
        scan            gr7,gr8,gr9
27
        test_gr_immed   63,gr9
28
        test_gr_limmed  0xd555,0x5555,gr7
29
        test_gr_limmed  0xaaaa,0xaaaa,gr8
30
 
31
        set_gr_limmed   0xd555,0x5555,gr7
32
        set_gr_limmed   0xaaaa,0xaaab,gr8
33
        scan            gr7,gr8,gr9
34
        test_gr_immed   63,gr9
35
        test_gr_limmed  0xd555,0x5555,gr7
36
        test_gr_limmed  0xaaaa,0xaaab,gr8
37
 
38
        set_gr_limmed   0xffff,0xffff,gr7
39
        set_gr_limmed   0x7fff,0xffff,gr8
40
        scan            gr7,gr8,gr9
41
        test_gr_immed   0,gr9
42
        test_gr_limmed  0xffff,0xffff,gr7
43
        test_gr_limmed  0x7fff,0xffff,gr8
44
 
45
        set_gr_limmed   0xffff,0xffff,gr7
46
        set_gr_limmed   0xbfff,0xffff,gr8
47
        scan            gr7,gr8,gr9
48
        test_gr_immed   2,gr9
49
        test_gr_limmed  0xffff,0xffff,gr7
50
        test_gr_limmed  0xbfff,0xffff,gr8
51
 
52
        set_gr_limmed   0xffff,0xffff,gr7
53
        set_gr_limmed   0xfffe,0xffff,gr8
54
        scan            gr7,gr8,gr9
55
        test_gr_immed   16,gr9
56
        test_gr_limmed  0xffff,0xffff,gr7
57
        test_gr_limmed  0xfffe,0xffff,gr8
58
 
59
        set_gr_limmed   0xffff,0xffff,gr7
60
        set_gr_limmed   0xffff,0xfffd,gr8
61
        scan            gr7,gr8,gr9
62
        test_gr_immed   31,gr9
63
        test_gr_limmed  0xffff,0xffff,gr7
64
        test_gr_limmed  0xffff,0xfffd,gr8
65
 
66
        set_gr_limmed   0xdead,0xbeef,gr7
67
        set_gr_limmed   0xbeef,0xdead,gr8
68
        scan            gr7,gr8,gr9
69
        test_gr_immed   7,gr9
70
        test_gr_limmed  0xdead,0xbeef,gr7
71
        test_gr_limmed  0xbeef,0xdead,gr8
72
 
73
        pass

powered by: WebSVN 2.1.0

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