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/] [sh64/] [compact/] [movb7.cgs] - Blame information for rev 24

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for mov.b @${rm}+, $rn -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
        mov #30, r1
10
        shll8 r1
11
        # Store addr.
12
        mov r1, r8
13
 
14
        # Store something there first.
15
        mov #0, r0
16
        or #170, r0
17
        mov r0, r7
18
        mov.b r7, @r1
19
        # Load it back.
20
        mov.b @r1+, r2
21
        mov r2, r0
22
        and #255, r0
23
        cmp/eq r7, r0
24
        bf wrong
25
 
26
        # Test address for post-incrementing.
27
        add #1, r8
28
        cmp/eq r8, r1
29
        bf wrong
30
 
31
okay:
32
        pass
33
wrong:
34
        fail
35
 

powered by: WebSVN 2.1.0

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