[binutils, ARM, 5/16] BF insns infrastructure with new global reloc R_ARM_THM_BF16
[binutils-gdb.git] / sim / testsuite / d10v-elf / t-rep.s
blobcea3ea8251d8809b5a4e8a0f767d3eb7ff69c246
1 .include "t-macros.i"
3 start
7 ;; Check that the instruction @REP_E is executed when it
8 ;; is reached using a branch instruction
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
23 check 1 r3 47
26 ;; Check that the loop is executed the correct number of times
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
42 check 2 r3 10
43 check 3 r4 10
45 exit0