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/] [sti.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 sti $GRk,@($GRi,$GRj)
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global sti
9
sti:
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
        set_gr_limmed   0xffff,0xffff,gr8
19
 
20
        sti             gr8,@(sp,0)
21
        test_mem_limmed 0xffff,0xffff,gr22
22
        test_mem_limmed 0xbeef,0xdead,gr21
23
        test_mem_limmed 0xdead,0xbeef,gr20
24
 
25
        inc_gr_immed    0x804,sp        ; 2052
26
        sti             gr8,@(sp,-2048)
27
        test_mem_limmed 0xffff,0xffff,gr22
28
        test_mem_limmed 0xffff,0xffff,gr21
29
        test_mem_limmed 0xdead,0xbeef,gr20
30
 
31
        inc_gr_immed    -4088,sp
32
        sti             gr8,@(sp,0x7fc)
33
        test_mem_limmed 0xffff,0xffff,gr22
34
        test_mem_limmed 0xffff,0xffff,gr21
35
        test_mem_limmed 0xffff,0xffff,gr20
36
 
37
        pass

powered by: WebSVN 2.1.0

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