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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# cr16 testcase for push count reg RA insns.
2
# mach:  cr16
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global push1
9
push1:
10
        movd $0x100a, (sp)
11
        movd $0xabcd, (ra)
12
        movw $0x2f50, r5
13
        movw $0x107e, r6
14
        movw $0x35ed, r7
15
        push $3,r5,RA
16
 
17
        loadw 0x1000, r3
18
        cmpw r3,r5
19
        beq ok1
20
        br not_ok
21
not_ok:
22
        fail
23
ok1:
24
        loadw 0x1002, r3
25
        cmpw r3,r6
26
        beq ok2
27
        br not_ok
28
ok2:
29
        loadw 0x1004, r3
30
        cmpw r3,r7
31
        beq ok3
32
        br not_ok
33
 
34
ok3:
35
        loadd 0x1006, (r3,r2)
36
        cmpd (r3,r2), (ra)
37
        beq ok4
38
        br not_ok
39
 
40
ok4:
41
        pass

powered by: WebSVN 2.1.0

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