OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [stdi.cgs] - Blame information for rev 272

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for stdi $GRk,@($GRi,$GRj)
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global stdi
9
stdi:
10
        set_mem_limmed  0xdead,0xbeef,sp
11
        set_gr_gr       sp,gr20
12
        inc_gr_immed    -4,sp
13
        set_mem_limmed  0xbeef,0xdead,sp
14
        set_gr_gr       sp,gr21
15
        inc_gr_immed    -4,sp
16
        set_mem_limmed  0x1234,0x5678,sp
17
        set_gr_gr       sp,gr22
18
        inc_gr_immed    -4,sp
19
        set_mem_limmed  0x8765,0x4321,sp
20
        set_gr_gr       sp,gr23
21
        inc_gr_immed    -4,sp
22
        set_mem_limmed  0xfedc,0xba98,sp
23
        set_gr_gr       sp,gr24
24
        inc_gr_immed    -4,sp
25
        set_mem_limmed  0x89ab,0xcdef,sp
26
        set_gr_gr       sp,gr25
27
        set_gr_limmed   0xffff,0xffff,gr8
28
        set_gr_limmed   0xffff,0xffff,gr9
29
 
30
        stdi            gr8,@(sp,0)
31
        test_mem_limmed 0xffff,0xffff,gr25
32
        test_mem_limmed 0xffff,0xffff,gr24
33
        test_mem_limmed 0x8765,0x4321,gr23
34
        test_mem_limmed 0x1234,0x5678,gr22
35
        test_mem_limmed 0xbeef,0xdead,gr21
36
        test_mem_limmed 0xdead,0xbeef,gr20
37
 
38
        inc_gr_immed    0x808,sp        ; 2056
39
        stdi            gr8,@(sp,-2048)
40
        test_mem_limmed 0xffff,0xffff,gr25
41
        test_mem_limmed 0xffff,0xffff,gr24
42
        test_mem_limmed 0xffff,0xffff,gr23
43
        test_mem_limmed 0xffff,0xffff,gr22
44
        test_mem_limmed 0xbeef,0xdead,gr21
45
        test_mem_limmed 0xdead,0xbeef,gr20
46
 
47
        inc_gr_immed    -4080,sp
48
        stdi            gr8,@(sp,0x7f8)
49
        test_mem_limmed 0xffff,0xffff,gr25
50
        test_mem_limmed 0xffff,0xffff,gr24
51
        test_mem_limmed 0xffff,0xffff,gr23
52
        test_mem_limmed 0xffff,0xffff,gr22
53
        test_mem_limmed 0xffff,0xffff,gr21
54
        test_mem_limmed 0xffff,0xffff,gr20
55
 
56
        pass

powered by: WebSVN 2.1.0

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