gas/
[deliverable/binutils-gdb.git] / gas / testsuite / gas / crx / br_insn.s
1 # Branch instructions.
2 .data
3 foodata: .word 42
4 .text
5 footext:
6
7 # conditional branch instructions.
8 .global beq
9 beq:
10 beq *+16
11 beq *+4090
12 beq *+567890
13
14 .global bne
15 bne:
16 bne *-8
17 bne *+0xf46
18 bne *-0xf7812
19
20 .global bcs
21 bcs:
22 bcs *+250
23 bcs *-0x2674
24 bcs *+0x89052
25
26 .global bcc
27 bcc:
28 bcc *-250
29 bcc *+0xfffe
30 bcc *+0xfffffffe
31
32 .global bhi
33 bhi:
34 bhi *+254
35 bhi *-0xfffe
36 bhi *-0xfffffffe
37
38 .global bls
39 bls:
40 bls *-2
41 bls *-0x10000
42 bls *+0x10000
43
44 .global bgt
45 bgt:
46 bgt *+060
47 bgt *+0xffe
48 bgt *-0x10002
49
50 .global ble
51 ble:
52 ble *-0100
53 ble *-258
54 ble *+0xefff2
55
56 .global bfs
57 bfs:
58 bfs *+0x2
59 bfs *+0177776
60 bfs *+0200000
61
62 .global bfc
63 bfc:
64 bfc *+0xfe
65 bfc *+65534
66 bfc *+0x80000
67
68 .global blo
69 blo:
70 blo *-0xfe
71 blo *-65534
72 blo *+4294967294
73
74 .global bhs
75 bhs:
76 bhs *-0x100
77 bhs *-0xf000
78 bhs *+0xff2
79
80 .global blt
81 blt:
82 blt *+34
83 blt *+1234
84 blt *+037777777776
85
86 .global bge
87 bge:
88 bge *+0x34
89 bge *-0x1234
90 bge *+1048578
91
92 .global br
93 br:
94 br *+034
95 br *+01234
96 br *-04000002
97
98 # Decrement and Branch instructions.
99 .global dbnzb
100 dbnzb:
101 dbnzb r0, *+034
102 dbnzb r1, *+01234568
103
104 .global dbnzw
105 dbnzw:
106 dbnzw r2, *+6552
107 dbnzw r3, *+6553520
108
109 .global dbnzd
110 dbnzd:
111 dbnzd ra, *+0xff2
112 dbnzd sp, *+0x12ffff4
113
114 # Branch/Jump and link instructions.
115
116 .global bal
117 bal:
118 bal r1, 0x2
119 bal r1, -0x2
120 bal r1, 0xabce
121 bal r0, -0xb4e
122 bal r1, 0xabcde
123 bal r1, -0xabcde
124
125 .global jal
126 jal:
127 jal ra
128 jal r1, sp
129
130 .global jalid
131 jalid:
132 jalid r12, r14
This page took 0.043933 seconds and 4 git commands to generate.