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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [fr30/] [leave.cgs] - Rev 842

Compare with Previous | Blame | View Log

# fr30 testcase for leave
# mach(): fr30

        .include "testutils.inc"

        START

        .text
        .global leave
leave:
        ; Test leave $u10
        mvr_h_gr        sp,r7                   ; save Stack pointer
        mvr_h_gr        sp,r14
        inci_h_gr       -4,r14
        mvi_h_mem       0xdeadbeef,r14
        mvi_h_gr        0xbeefdead,r15
        set_cc  0x0f                    ; Condition codes are irrelevent
        leave
        test_cc 1 1 1 1
        testr_h_gr      sp,r7
        test_h_gr       0xdeadbeef,r14

        pass

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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