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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for mov.w @($imm8x2, gbr), r0 -*- 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
        ldc r0, gbr
12
 
13
        # Store something first.
14
        # Build up a distinctive bit pattern.
15
        mov #1, r0
16
        shll8 r0
17
        add #12, r0
18
        # Preserve r0.
19
        mov r0, r7
20
        mov.w r0, @(12, gbr)
21
 
22
check:
23
        # Load it back.
24
        mov.w @(12, gbr), r0
25
        shll16 r0
26
        shll16 r7
27
        cmp/eq r0, r7
28
        bf wrong
29
 
30
okay:
31
        pass
32
wrong:
33
        fail

powered by: WebSVN 2.1.0

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