projects
/
platform
/
upstream
/
binutils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* sim/cris/asm/badarch1.ms, sim/cris/c/badldso1.c,
[platform/upstream/binutils.git]
/
sim
/
testsuite
/
d10v-elf
/
t-rep.s
1
.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