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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for mov.l @($imm4x4, $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, r0
10
        shll8 r0
11
        # Build up a distinctive bit pattern.
12
        mov #1, r2
13
        shll8 r2
14
        add #12, r2
15
        shll8 r2
16
        add #85, r2
17
        shll8 r2
18
        add #170, r2
19
        # Store something first.
20
        mov.l r2, @(12, r0)
21
 
22
check:
23
        # Read it back.
24
        mov.l @(12, r0), r1
25
        cmp/eq r2, r1
26
        bf wrong
27
 
28
okay:
29
        pass
30
wrong:
31
        fail
32
 

powered by: WebSVN 2.1.0

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