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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [movb3.cgs] - Blame information for rev 816

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, @(r0,$rn) -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
        mov #40, r2
10
        shll8 r2
11
        mov #3, r1
12
        mov #0, r0
13
        or #170, r0
14
        mov r0, r3
15
        mov r2, r0
16
        mov.b r3, @(r0, r1)
17
 
18
        # Load the value back into a different register.
19
        mov.b @(r0, r1), r4
20
        # Check the lowest order byte matches the stored value.
21
        mov r4, r0
22
        and #255, r0
23
        cmp/eq r0, r3
24
        bf wrong
25
 
26
okay:
27
        pass
28
 
29
wrong:
30
        fail

powered by: WebSVN 2.1.0

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