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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for ldd @($GRi,$GRj),$GRk
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global ldd
9
ldd:
10
        set_mem_limmed  0xdead,0xbeef,sp
11
        inc_gr_immed    -4,sp
12
        set_mem_limmed  0xbeef,0xdead,sp
13
        set_gr_limmed   0xdead,0xbeef,gr8
14
        set_gr_limmed   0xbeef,0xdead,gr9
15
 
16
        set_gr_immed    0,gr7
17
        ldd             @(sp,gr7),gr8
18
        test_gr_limmed  0xbeef,0xdead,gr8
19
        test_gr_limmed  0xdead,0xbeef,gr9
20
 
21
        set_gr_limmed   0xdead,0xbeef,gr8
22
        set_gr_limmed   0xbeef,0xdead,gr9
23
        inc_gr_immed    -8,sp
24
        set_gr_immed    8,gr7
25
        ldd             @(sp,gr7),gr8
26
        test_gr_limmed  0xbeef,0xdead,gr8
27
        test_gr_limmed  0xdead,0xbeef,gr9
28
 
29
        set_gr_limmed   0xdead,0xbeef,gr8
30
        set_gr_limmed   0xbeef,0xdead,gr9
31
        inc_gr_immed    16,sp
32
        set_gr_immed    -8,gr7
33
        ldd             @(sp,gr7),gr8
34
        test_gr_limmed  0xbeef,0xdead,gr8
35
        test_gr_limmed  0xdead,0xbeef,gr9
36
 
37
        ; loading into gr0 should have no effect
38
        ; gr1 is sp
39
        set_gr_gr       gr1,gr8
40
        ldd             @(sp,gr7),gr0
41
        test_gr_immed   0,gr0
42
        test_gr_gr      gr1,gr8
43
        pass

powered by: WebSVN 2.1.0

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