Synchronize sourceware version of the libiberty sources with the master gcc versions.
[binutils-gdb.git] / sim / testsuite / d10v / t-rep.s
blob433aff1e4ef50ada0a177ab7642fcb3ec116c29d
1 # mach: all
2 # output:
3 # sim: --environment operating
5 .include "t-macros.i"
7 start
11 ;; Check that the instruction @REP_E is executed when it
12 ;; is reached using a branch instruction
14 ldi r2, 1
15 test_rep_1:
16 rep r2, end_rep_1
17 nop || nop
18 nop || nop
19 nop || nop
20 nop || nop
21 ldi r3, 46
22 bra end_rep_1
23 ldi r3, 42
24 end_rep_1:
25 addi r3, 1
27 check 1 r3 47
30 ;; Check that the loop is executed the correct number of times
32 ldi r2, 10
33 ldi r3, 0
34 ldi r4, 0
35 test_rep_2:
36 rep r2, end_rep_2
37 nop || nop
38 nop || nop
39 nop || nop
40 nop || nop
41 nop || nop
42 addi r3, 1
43 end_rep_2:
44 addi r4, 1
46 check 2 r3 10
47 check 3 r4 10
49 exit0