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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [d10v-elf/] [t-rep.s] - Blame information for rev 157

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

Line No. Rev Author Line
1 24 jeremybenn
.include "t-macros.i"
2
 
3
        start
4
 
5
 
6
 
7
        ;; Check that the instruction @REP_E is executed when it
8
        ;; is reached using a branch instruction
9
 
10
        ldi r2, 1
11
test_rep_1:
12
        rep     r2, end_rep_1
13
        nop || nop
14
        nop || nop
15
        nop || nop
16
        nop || nop
17
        ldi     r3, 46
18
        bra     end_rep_1
19
        ldi     r3, 42
20
end_rep_1:
21
        addi    r3, 1
22
 
23
        check 1 r3 47
24
 
25
 
26
        ;; Check that the loop is executed the correct number of times
27
 
28
        ldi     r2, 10
29
        ldi     r3, 0
30
        ldi     r4, 0
31
test_rep_2:
32
        rep     r2, end_rep_2
33
        nop || nop
34
        nop || nop
35
        nop || nop
36
        nop || nop
37
        nop || nop
38
        addi    r3, 1
39
end_rep_2:
40
        addi    r4, 1
41
 
42
        check 2 r3 10
43
        check 3 r4 10
44
 
45
        exit0

powered by: WebSVN 2.1.0

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