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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for nldq @($GRi,$GRj),$GRk
2
# mach: frv
3
# as(frv): -mcpu=frv
4
 
5
        .include "testutils.inc"
6
 
7
        start
8
 
9
        .global nldq
10
nldq:
11
        set_mem_limmed  0xdead,0xbeef,sp
12
        inc_gr_immed    -4,sp
13
        set_mem_limmed  0xbeef,0xdead,sp
14
        inc_gr_immed    -4,sp
15
        set_mem_limmed  0x1234,0x5678,sp
16
        inc_gr_immed    -4,sp
17
        set_mem_limmed  0x9abc,0xdef0,sp
18
        set_gr_limmed   0xdead,0xbeef,gr8
19
        set_gr_limmed   0xbeef,0xdead,gr9
20
        set_gr_limmed   0x1234,0x5678,gr10
21
        set_gr_limmed   0x9abc,0xdef0,gr11
22
 
23
        set_gr_gr       sp,gr20
24
        set_gr_immed    0,gr7
25
        nldq            @(sp,gr7),gr8
26
        test_gr_limmed  0x9abc,0xdef0,gr8
27
        test_gr_limmed  0x1234,0x5678,gr9
28
        test_gr_limmed  0xbeef,0xdead,gr10
29
        test_gr_limmed  0xdead,0xbeef,gr11
30
        test_spr_limmed 0x88c0,0x0001,nesr0
31
        test_spr_gr     neear0,gr20
32
        test_spr_limmed 0x0000,0x0000,gner1
33
        test_spr_limmed 0x0000,0x0000,gner0
34
 
35
        set_gr_limmed   0xdead,0xbeef,gr8
36
        set_gr_limmed   0xbeef,0xdead,gr9
37
        set_gr_limmed   0x1234,0x5678,gr10
38
        set_gr_limmed   0x9abc,0xdef0,gr11
39
        inc_gr_immed    -16,sp
40
        set_gr_immed    16,gr7
41
        nldq            @(sp,gr7),gr8
42
        test_gr_limmed  0x9abc,0xdef0,gr8
43
        test_gr_limmed  0x1234,0x5678,gr9
44
        test_gr_limmed  0xbeef,0xdead,gr10
45
        test_gr_limmed  0xdead,0xbeef,gr11
46
        test_spr_limmed 0x88c0,0x0401,nesr1
47
        test_spr_gr     neear1,gr20
48
        test_spr_limmed 0x0000,0x0000,gner1
49
        test_spr_limmed 0x0000,0x0000,gner0
50
 
51
        set_gr_limmed   0xdead,0xbeef,gr8
52
        set_gr_limmed   0xbeef,0xdead,gr9
53
        set_gr_limmed   0x1234,0x5678,gr10
54
        set_gr_limmed   0x9abc,0xdef0,gr11
55
        inc_gr_immed    32,sp
56
        set_gr_immed    -16,gr7
57
        nldq            @(sp,gr7),gr8
58
        test_gr_limmed  0x9abc,0xdef0,gr8
59
        test_gr_limmed  0x1234,0x5678,gr9
60
        test_gr_limmed  0xbeef,0xdead,gr10
61
        test_gr_limmed  0xdead,0xbeef,gr11
62
        test_spr_limmed 0x88c0,0x0801,nesr2
63
        test_spr_gr     neear2,gr20
64
        test_spr_limmed 0x0000,0x0000,gner1
65
        test_spr_limmed 0x0000,0x0000,gner0
66
 
67
        pass

powered by: WebSVN 2.1.0

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