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/] [fr30/] [addsp.cgs] - Blame information for rev 225

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

Line No. Rev Author Line
1 24 jeremybenn
# fr30 testcase for addsp $s10
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global addsp
10
addsp:
11
        ; Test addsp $s10
12
        mvr_h_gr        sp,r7                   ; save stack pointer permanently
13
        mvr_h_gr        sp,r8                   ; Shadow updated sp
14
        set_cc  0x0f                    ; Condition codes are irrelevent
15
        addsp           508
16
        test_cc         1 1 1 1
17
        inci_h_gr       508,r8
18
        testr_h_gr      r8,sp
19
 
20
        set_cc  0x0e                    ; Condition codes are irrelevent
21
        addsp           0
22
        test_cc         1 1 1 0
23
        testr_h_gr      r8,sp
24
 
25
        set_cc  0x0d                    ; Condition codes are irrelevent
26
        addsp           -512
27
        test_cc         1 1 0 1
28
        inci_h_gr       -512,r8
29
        testr_h_gr      r8,sp
30
 
31
        pass

powered by: WebSVN 2.1.0

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