Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / cris / asm / pcplus.ms
blob99cd46af9e5487df591a62e62f3e8aa68d0463e2
1 # mach: crisv0 crisv3 crisv8 crisv10
3 ; Test that a forward as well as backward 32-bit "branch" expansion
4 ; works including that the right offset is applied.
6         .macro nop32
7         .rept 32
8         nop
9         .endr
10         .endm
12         .include "testutils.inc"
13         start
14         jump start1
15         fail
17         nop32
18         subq 63,$r10
19 9:      subq 1,$r10
20         nop32
21         jump 0f
23         fail
24 0:      move [$pc=$pc+1f-6-0b],$p0
25         nop32
26         fail
28         .skip 32768,0
30         nop32
31         subq 63,$r10
33         subq 1,$r10
34         nop32
35         test.d $r10
36         bne 7f
37         nop
38         pass
40         fail
42 start1:
43         moveq 2,$r10
44 0:      move [$pc=$pc+9b-6-0b],$p0
45         subq 63,$r10
46         fail