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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [cr16/] [popret2.cgs] - Blame information for rev 841

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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