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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [movb2.cgs] - Rev 868

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

# sh testcase for mov.b $rm, @-$rn -*- Asm -*-
# mach: all
# as: -isa=shcompact
# ld: -m shelf32

        .include "compact/testutils.inc"

        start
        mov #40, r1
        shll8 r1
        mov #55, r2
        
        # Save ADDR, DATA.
        mov r1, r7
        mov r2, r8

        # Do the move.
        mov.b r2, @-r1
        
        # Load the value back into r3.
        mov.b @r1, r3
        cmp/eq r2, r3
        bf wrong

        # Ensure that r1 has been decremented.
        mov #1, r0
        sub r0, r7
        cmp/eq r7, r1
        bf wrong

okay:
        pass
wrong:
        fail

Go to most recent revision | 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.