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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [frv/] [ldqc.cgs] - Blame information for rev 842

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for ldqc @($GRi,$GRj),$GRk
2
# mach: frv
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global ldqc
9
ldqc:
10
        set_mem_limmed  0xdead,0xbeef,sp
11
        inc_gr_immed    -4,sp
12
        set_mem_limmed  0xbeef,0xdead,sp
13
        inc_gr_immed    -4,sp
14
        set_mem_limmed  0x1234,0x5678,sp
15
        inc_gr_immed    -4,sp
16
        set_mem_limmed  0x9abc,0xdef0,sp
17
        set_cpr_limmed  0xdead,0xbeef,cpr8
18
        set_cpr_limmed  0xbeef,0xdead,cpr9
19
        set_cpr_limmed  0x1234,0x5678,cpr10
20
        set_cpr_limmed  0x9abc,0xdef0,cpr11
21
 
22
        set_gr_immed    0,gr7
23
        ;loading into cpr0 is business as usual
24
        ldqc            @(sp,gr7),cpr0
25
        test_cpr_limmed 0x9abc,0xdef0,cpr0
26
        test_cpr_limmed 0x1234,0x5678,cpr1
27
        test_cpr_limmed 0xbeef,0xdead,cpr2
28
        test_cpr_limmed 0xdead,0xbeef,cpr3
29
 
30
        ldqc            @(sp,gr7),cpr8
31
        test_cpr_limmed 0x9abc,0xdef0,cpr8
32
        test_cpr_limmed 0x1234,0x5678,cpr9
33
        test_cpr_limmed 0xbeef,0xdead,cpr10
34
        test_cpr_limmed 0xdead,0xbeef,cpr11
35
 
36
        set_cpr_limmed  0xdead,0xbeef,cpr8
37
        set_cpr_limmed  0xbeef,0xdead,cpr9
38
        set_cpr_limmed  0x1234,0x5678,cpr10
39
        set_cpr_limmed  0x9abc,0xdef0,cpr11
40
        inc_gr_immed    -16,sp
41
        set_gr_immed    16,gr7
42
        ldqc            @(sp,gr7),cpr8
43
        test_cpr_limmed 0x9abc,0xdef0,cpr8
44
        test_cpr_limmed 0x1234,0x5678,cpr9
45
        test_cpr_limmed 0xbeef,0xdead,cpr10
46
        test_cpr_limmed 0xdead,0xbeef,cpr11
47
 
48
        set_cpr_limmed  0xdead,0xbeef,cpr8
49
        set_cpr_limmed  0xbeef,0xdead,cpr9
50
        set_cpr_limmed  0x1234,0x5678,cpr10
51
        set_cpr_limmed  0x9abc,0xdef0,cpr11
52
        inc_gr_immed    32,sp
53
        set_gr_immed    -16,gr7
54
        ldqc            @(sp,gr7),cpr8
55
        test_cpr_limmed 0x9abc,0xdef0,cpr8
56
        test_cpr_limmed 0x1234,0x5678,cpr9
57
        test_cpr_limmed 0xbeef,0xdead,cpr10
58
        test_cpr_limmed 0xdead,0xbeef,cpr11
59
 
60
        pass

powered by: WebSVN 2.1.0

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