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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [movb4.cgs] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# sh testcase for mov.b r0, @($imm8, gbr) -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
        mov #0, r0
10
        or #170, r0
11
        mov r0, r3
12
        mov #30, r2
13
        ldc r2, gbr
14
        mov.b r0, @(40, gbr)
15
 
16
        # Load the value back into a different register.
17
        mov.b @(40, gbr), r0
18
        # Check the lowest order byte matches the stored value.
19
        and #255, r0
20
        cmp/eq r0, r3
21
        bf wrong
22
 
23
okay:
24
        pass
25
 
26
wrong:
27
        fail
28
 

powered by: WebSVN 2.1.0

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