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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cr16/] [loadm.cgs] - Blame information for rev 834

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

Line No. Rev Author Line
1 227 jeremybenn
# cr16 testcase for loadm count
2
# mach(): cr16
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global loadm
9
loadm:
10
        movw $0x1000, r0
11
        movw $0x12, r2
12
        storw r2, 0x1000
13
        movw $0x34, r3
14
        storw r3, 0x1002
15
        movw $0x56, r4
16
        storw r4, 0x1004
17
        movw $0x78, r5
18
        storw r5, 0x1006
19
 
20
        loadm $4
21
 
22
        cmpw  $0x12,r2
23
        beq ok1
24
not_ok:
25
        fail
26
ok1:
27
        cmpw $0x34,r3
28
        beq ok2
29
        br not_ok
30
ok2:
31
        cmpw $0x56,r4
32
        beq ok3
33
        br not_ok
34
ok3:
35
        cmpw $0x78,r5
36
        beq ok4
37
        br not_ok
38
ok4:
39
        pass
40
        pass
41
 

powered by: WebSVN 2.1.0

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