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