PRU GAS Port
[deliverable/binutils-gdb.git] / gas / testsuite / gas / pru / branch.s
1 # Source file used to test the miscellaneous instructions.
2
3 foo:
4 L1:
5 jmp r10
6 jmp r10.w0
7 jmp 0x100
8
9 L2:
10 jal r22, r10.w2
11 jal r23, 0
12 jal r23.w1, 0x3fffc
13
14 # relative branches - forward jump
15 L3:
16 qbgt L5, r23, 0
17 qbge L5, r23.b2, 255
18 qblt L5, r22.w1, r0.b1
19 qble L5, r0.b0, r1.b1
20 qbeq L5, r1.b2, r3.b0
21 qbne L5, r21, r22
22 qba L5
23
24 qbbs L5, r12, r13
25 qbbs L5, r12, 5
26 qbbc L5, r12, r13
27 qbbc L5, r12, 5
28
29 # relative branches - backward jump
30 L4:
31 qbgt L2, r23, 0
32 qbge L2, r23.b2, 255
33 qblt L2, r22.w1, r0.b1
34 qble L2, r0.b0, r1.b1
35 qbeq L2, r1.b2, r3.b0
36 qbne L2, r21, r22
37 qba L2
38
39 L5:
40 qbbs L2, r12, r13
41 qbbs L2, r12, 5
42 qbbc L2, r12, r13
This page took 0.031028 seconds and 4 git commands to generate.