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/] [movl3.cgs] - Blame information for rev 280

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for mov.l $rm, @(r0, $rn)
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
setaddr:
11
        mov #0, r0
12
        mov #30, r1
13
        shll8 r1
14
 
15
init:
16
        # Build up a distinctive bit pattern.
17
        mov #1, r2
18
        shll8 r2
19
        add #12, r2
20
        shll8 r2
21
        add #85, r2
22
        shll8 r2
23
        add #170, r2
24
 
25
        mov.l r2, @(r0, r1)
26
 
27
check:
28
        # Load it back.
29
        mov.l @(r0, r1), r3
30
        cmp/eq r2, r3
31
        bf wrong
32
 
33
okay:
34
        pass
35
wrong:
36
        fail

powered by: WebSVN 2.1.0

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